The equation of a line in the slope intercept form is expressed as
y = mx + c
Where
m represents slope
c represents y intercept
The formula for determining slope is
m = (y2 - y1)/(x2 - x1)
From the information given,
x1 = 2, y1 = 5
x2 = 1, y2 = 8
m = ((8 - 5)/(1 - 2) = 3/- 1
m = - 3
we would find the y intercept, c by substituting x = 2, y = 5 and m = - 3 into the slope intercept equation. It becomes
5 = - 3 * 2 + c
5 = - 6 + c
c = 5 + 6 = 11
We would substitute m = - 3 and c = 11 into the slope intercept equation. Thus, the equation of the line is
y = - 3x + 11