Slope intercept form:
y = mx + b
m = (y2 - y1)/(x2 - 1) = (-8 - 1)/(2 - (-1)) = -9/(2 + 1) = -9/3 = -3
m = -3
If we take one of the point, for example (2, -8) and use it on the equation with the slope we already found:
y = -3x + b
-8 = -3(2) + b
Solving for b:
-8 = -6 + b
b = -8 + 6 = -2
b = -2
Therefore, the equation is: y = -3x -2
Answer:
y = -3x -2