A ball collides with a pendulum bob and the two swing together to a height determined by the mass of the bob, and by the mass and initial speed of the ball.