A 12.0-g rifle bullet is fired by a speed of 380 m/s into a ballistic pendulum with mass 6.0 kg, suspended from a cord 70.0 cm long. Calculate (a) the velocity of the bullet and pendulum immediately after the bullet becomes embedded in the pendulum, and (b) the vertical height during which the pendulum rises.