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
3x2+10xy+3y2=0
Let y = mx be a line common to the given pairs of lines, then
am2+2m+1=0 and m2+2m+a=0. Solving these two equations we get,
a = 1 or -3
But for a = 1, the two pairs have both the lines common, so a =-3 and m=−(a+12)
∴ m = 1
Now, x2+2xy+ay2=x2+2xy−3y2
= (x - y) (x + 3y)
and ax2+2xy+y2=−3x2+2xy+y2
= -(x - y) (3x + y)
So, the equation of the required lines is
(x + 3y) (3x + y) = 0 ⇒3x2+10xy+3y2=0