writing an equation of a line given two points