write the equation of each line in the given form