For this equation, we need to find the slope and y-intercept in the following formula:
y = mx + b
(-7) - (-8) = 1
1 - 2 = -1
Our slope is -1/1, which converts to -x.
We can plug this in using any pair, but for this equation we’ll use the ordered pair (1, -7).
-7 = -1(1) + b
-7 = -1 + b
(-7) - (-1) = -6
b = -6
The equation of the line is:
y = -x - 6