If v0 is the velocity of projection and α the angle of projection, the equation of trajectory is y=xtanα−12gx2v20cos2α.............(i)
With origin at the point of projection,
gx2−2v20sinαcosα.x+2v20cos2α.y=0.........(ii)
Since the projectile passes through two points (a,h) and (2a,h), then a and 2a must be roots of Eq (ii),
a+2a=2v20sinαcosαg.....................(iii)
and
a×2a=2v20cos2αhg.................(iv)
Dividing Eqs (iii) by (iv), we get
3a2a2=tanαh or tanα=3h2a
From Eq.(iv),
v20=ga2hsec2α=ga2h(1+tan2α)=ga2h(1+9h24a2)
=g4(4a2h+9h) or v0=12√(4a2h+9h)g