The general equation of a line is
where m is the slope and b the y-intercept
we can find m by the formula
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
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)
no we can replace the slope -1 and b 4 on the general equation to have the equation of the line to the exercise