We have to find the equation of a line fo which we know two points, using the point-slope form.
The point-slope let us write the equation of the line knowing the value of the slope m and the coordinates of one point (x0,y0) of the line:
We use the two known points to calculate the slope m:
Using the point (-1,7), we can write the equation as:
Answer: From the options, the right ones are:
y-7=-1(x-(-1))
y-4=-1(x-2) --> this one would have been used if we picked the point (2,4) instead of (-1,7)
y=-x+6