Suppose given points,
[tex]\begin{gathered} (x_1,y_1)=(4,1) \\ (x_2,y_2)=(-2,7) \end{gathered}[/tex]Equation in slope form.
[tex](y-y_1)=(\frac{y_2-y_1}{x_2-x_1})(x-x_1)[/tex]Substitute the given points.
[tex]\begin{gathered} (y-4)=\frac{7-1}{-2-4}(x-4) \\ y-4=-1(x-4) \\ y-4=-x+4 \\ y=-x+8 \end{gathered}[/tex]Therefore, the equation of slope is
[tex]y=-x+8[/tex]