As the body ' A ' is dropped from rest ∴h=21gtA2 ⇒tA=g2h
As the body B is given a horizontal velocity at the time of release, it is going to follow the same trajectory as a body on a projectile motion projected with a velocity having the same horizontal component as the horizontal velocity of B given at H. So the time taken by B from H to Y is same as that from X to H.
Now let the vertical component of velocity at X be v then at H 0=v2−2gh[∴atH,vf=0] ⇒v2=2gh ⇒v=2gh
and 0=v−gt ⇒t=gv=g2gh=g2h ∴tB=t=g2h=tA