A cannon and a supply of cannonballs are inside a sealed railroad car of length $L$, as in Fig.8-30. The cannon fires to the right, the car recoils to the left. Fired cannonballs travel a horizontal distance $L$ and remain in the car after hitting the far wall and landing on the floor there. (a) After all the cannonballs have been fired, what is the greatest distance the car could have moved from its original position? (b) What is the speed of the car just after the last cannonball has completed its motion?