I got this puzzle from my friend Ron Talmage. Ron found the puzzle on his favorite puzzle Web site, www.cartalk.com, where a new puzzle is posted every week.

The combined age of a ship and its boiler is 42. The ship is twice as old as the boiler was when the ship was as old as the boiler is now. How old are the ship and its boiler?