Explanation
Given the two points
[tex]\begin{gathered} (x_1,y_1)=(-2,4) \\ (x_2,y_2)=(-1,1) \end{gathered}[/tex]The rise and run of the line is given as;
[tex]m=\frac{\text{rise}}{run}=\frac{y_2-y_1}{x_2-x_1}=\frac{1-4}{-1-(-2)}=-\frac{3}{1}=-3^{}_{}[/tex]Recall, the equation of a line in slope-intercept form is given as;
[tex]y=mx+c[/tex]Since we know the value of m, we can find the value of c by using one of the points above.
When x=-2, y= 4. Therefore;
[tex]\begin{gathered} 4=-3(-2)+c \\ 4=6+c \\ c=4-6 \\ c=-2 \end{gathered}[/tex]We then insert m and c into the slope-intercept equation.
Answer:
[tex]y=-3x-2[/tex]