The slope intercept equation is
y = mx + b
Where,
m = slope and b = intercept
Slope = Rise / Run
Rise = y2 - y1
Run = x2 - x1
Slope = y2 - y1 / x2 - x1
To calculate the slope, we need to pick two points
(1, 2) and (2, 5)
x1 = 1, y1 = 2, x2 = 2 and y2 = 5
Slope = 5 - 2 / 2 - 1
slope = 3 / 1
Slope = 3
The slope - intercept equation at any given point is
y - y1 = m(x - x1)
m = slope
(y - 2) = 3(x - 1)
Open the parentheses
y - 2 = 3x - 3
Make y the subject of the formula
y = 3x - 3 + 2
y = 3x - 1
Therefore,
The slope is 3, y intercept is -1 and the equation is y = 3x - 1