Find the gradient and the y-intercept