Finding the equation given two points