converting between forms and writing the equation of a line