If the pairs of lines x2+2xy+ay2=0 and ax2+2xy+y2=0 have exactly one line in common then the joint equation of the other two lines is given by