finding the equation of a line from coordinates