Hi Ros,
Use the slope formula to find slope:
m = (10-2)/(-2 - (-1)) = 8/(-2 + 1) = 8/-1 = -8
Next, you can use the point-slope formula: y - y1 = m(x-x1); (x1, y1) can be (-1,2) OR (-2, 10), doesn't matter. If you used (-2,10), you would get:
y - 10 = -8(x - (-2)) -----> y - 10 = -8(x+2) so y = -8(x+2) + 10 = -8x -16 +10 = -8x -6
Final answer: y = -8x - 6