A ship's captain and his ship together are 63 years old. When the captain is twice as old as the ship is now, then the ship will be exactly three times as old as the captain was when the ship's age in years was the square root of the captain's current age. How old is the captain?