Finding the slope and y-intercept