y=mx+b is the formula.
m is the slope and b is the y-intercept.
y-intercept is when x is 0 and x-intercept is when y is 0. So if x is 0, y=m(0)+b which is y=b. So on the graph y will be b when x is 0.
So in y=7x+2,
7 is the slope and 2 is the y-intercept.

