(b) From conservation of energy,
Potential energy at height $h =$ kinetic energy at ground
Therefore, at height $h$, potential energy of ball $A$
PE = $m_{A}gh$
KE at ground $= \frac{1}{2}m_{A}v_{A}^{2}$
So, $m_{A}gh = \frac{1}{2}m_{A}v_{A}^{2}$
$v_{A} = \sqrt{2gh}$
Similarly, $v_{B} = \sqrt{2gh}$
Therefore, $v_{A} = v_{B}$