Step-by-step explanation:
the most common form of line equation is
y = ax + b
a is the slope of the line. it is expressed as the ratio
y coordinate change / x coordinate change
when going from one point to the other.
b is the y-intercept (the y value when x = 0).
once we have the slope, we get b by using the coordinates of one of the given points as x and y in the equation and since for b.
for slope a :
x changes by -6 (from 4 to -2)
y changes by +36 (from -31 to 5)
so, the slope is +36/-6 = -6
and the equation looks now like this
y = -6x + b
let's use the second point
5 = -6×-2 + b = 12 + b
-7 = b
the full equation is
y = -6x - 7