Y = -7x - 2
Use the two points given to find the slope (m)
m = (y2 - y1) / (x2 - x1)
m = ( 12-5 ) / (-2 - (-1))
m = -7
Now we have y = -7x + b where 'b' is our y-intercept. We can solve for 'b' by choosing one of the (x,y) coordinate points and plugging them in.
Let's choose the point (-1,5). Plug -1 in for 'x' and 5 in for 'y' and solve for 'b'.
y = -7x + b
5 = -7(-1) + b
b = -2
Final eqn: y = -7x - 2