It's just the slope formula.
y = mx + b
The "m" is the slope.
The "b" is the y-intercept.
The y and the x don't change.