How to write the equation of a line given its slope and a point (other than the y intercept) through which the lines passes