y varies directly as x
This can be written mathematically as:
y = kx
If y = 7, x = -4
Solve for the constant k
7 = -4k
k = -7/4
The equation is:
y = -7/4 x
When x = 2
substitute x =2 anto the equatio n y = -7/4 x
[tex]\begin{gathered} y=-\frac{7}{4}\times2 \\ \\ y=-\frac{7}{2} \end{gathered}[/tex]