Math Word Problem — Ship and Anchor

Remember those word problems in high school or freshman college math class? Maybe you, like a lot of people, hated them. Maybe you liked them. If you are in the latter group, here’s one for you:

A ship is twice as old as the anchor was when the ship was as old as the anchor is. The sum of their two present ages is 42 years. How old is each?

You can email me for the answer, or you can solve it and post your answer and solution in the comments. I haven’t looked but I wouldn’t be surprised that you could find the answer and the solution somewhere on the internet. But that would be cheating.