Just remember that the slope-intercept form of the equation of a line is
y = mx + b
where m is the slope
and b is the y-intercept
y=mx+b
m is slope
x is x intercept
b=y intercept
slope \cdot x intercept + y intercept= y.
Just a small correction:
'x' is NOT the x intercept
the 'x' intercept is when y = 0
0 = mx +b
-b/m = x intercept