After collision the balls exchange theirt velocity their velocities, i.e.,
`v_(A) = sqrt(2gh) and v_(B) = sqrt(2g(4h)) = 2 sqrt(2gh)`
Height attained by `A` will be : `h_(A) = (v_(A)^(2))/(2g) = h`
But path of `B` will be first straight line and then parabolic as shown in figure. After calculation we can shown that : `h_(B) = (13)/(4) h and (h_(A))/(h_(B)) = (4)/(13)`