hello
to solve this question we would first of all find the slope of the line
[tex]\begin{gathered} slope(m)=\frac{y_2-y_1}{x_2-x_1} \\ \end{gathered}[/tex][tex]\begin{gathered} y_1=-2 \\ x_1=1 \\ y_2=7 \\ x_2=-2 \end{gathered}[/tex]we can now substitute this into the equation
[tex]\begin{gathered} m=\frac{y_2-y_1}{x_2-x_1} \\ m=\frac{7-(-2)}{-2-1} \\ m=\frac{7+2}{-3}=\frac{9}{-3}=-3 \end{gathered}[/tex]the slope of the line is -3
we can write out how the equation looks
[tex]\begin{gathered} y=mx+b \\ y=-3x+b \\ b=\text{intercept} \end{gathered}[/tex]we can use one of the points to solve for b
[tex]\begin{gathered} y=-3x+b \\ u\sin g\text{ the first point} \\ (1,-2) \\ -2=-3(1)+b \\ -2=-3+b \\ b=3-2 \\ b=1 \end{gathered}[/tex]we can now rewrite our equation with slope and intercept
[tex]\begin{gathered} y=mx+b \\ y=-3x+1 \end{gathered}[/tex]from the calculation above, the equation of the line is given as y = -3x + 1