Finding the slope and y intercept from a set of ordered pairs