Finding the equation of a line given two points