y = mx + b for b
y = mx + b
To solve this for b , let's subtract mx from both sides of the equation.
y - mx = mx + b - mx
y - mx = b
So....... b = y - mx