Well ... basically if you have the slope and the y-intercept (or the point ) then the equation of the line is simply .

If you have the slope and one point that is not the y-intercept, then you need to use the coordinates of the point to solve for , with the coordinates of the points ( is known as you have the slope)