Using the x intercept to find the slope of a straight line