When the first ball of mass m is projected vertically upwards, the second ball of mass 2m makes an angle θ with the vertical.
The time of flight is the same for both the balls.
Then, T1=T2 ⇒g2u1=g2u2sinθ
⇒u1=u2sinθ...(1)
Maximum height of projectile is given by H=2gu2sin2θ
Ratio of the heights is H2H1=u22sin2θu12...(2)
From equation (1) and (2), we have
⇒H2H1=1.
Thus, x=1.