writing equations of lines given two points