You may want to review finding the slope and y-intercept of a line first.

If you're given a slope and y-intercept, you can write the equation of the line. If the slope is m and the intercept (0, b), then the line has equation y = mx + b.