A pendulum bob of mass m is released from a height H above the lowest point. It collision at the lowest point with another pendulum of the same length but with bob of mass 2m initially at rest. Find the heights to which the bobs rise given that the collision is
(a) completely inelastic
(b) perfectly elastic