Hey Suvadip.

Hint: Try using the fact that the angle denoted by cos(0.5x) = <d1,d2> where d1, d2 are unit direction vectors for the lines and that the direction vector for the third line is rotated x radians from the line lx + my + n = 0 in the plane that is formed by the existing two lines.