the equation is of the form y = mx + b,
[tex]m=\frac{y2-y1}{x2-x1}=\frac{-7-(-10)}{-4-2}=\frac{-7+10}{-6}=\frac{3}{-6}=-\frac{1}{2}[/tex]for b:
[tex]\begin{gathered} -10=-\frac{1}{2}(2)+b \\ -10=-1+b \\ -10+1=-1+b+1 \\ b=-9 \end{gathered}[/tex]the equation is
[tex]y=-\frac{1}{2}x-9[/tex]