The general equation of a line is
[tex]y=mx+b[/tex]where m is the slope and b the y-intercept
we can find m by the formula
[tex]m=\frac{y2-y1}{x2-1}[/tex]where (x2,y2) is a right point of (x1,y1) then if we replace the point of the exercise we can find the slope of the line
[tex]\begin{gathered} m=\frac{1-6}{3-(-2)} \\ \\ m=\frac{-5}{5}=-1 \end{gathered}[/tex]value of the slope is -1
now to find y-intercept or b we replace the slope and a point of the line on the general equation
for example i will use (3,1)
[tex]\begin{gathered} y=mx+b \\ (1)=(-1)(3)+b \\ 1=-3+b \\ b=1+3 \\ b=4 \end{gathered}[/tex]no we can replace the slope -1 and b 4 on the general equation to have the equation of the line to the exercise
[tex]\begin{gathered} y=-x+4 \\ \end{gathered}[/tex]