Aliyah, this is the solution:
Let's calculate the slope, as follows:
(12 - 2)/(2 - 7) = 10/-5 = -2
Now, let's write the slope-intercept equation, this way:
y = mx + b
We already know that m = -2, now let's calculate b:
12 = -2 (2) + b
12 + 4 = b
b = 16
Therefore,
y = -2x + 16