The trick to this is solving the puzzle in the wardrobe in the captain's quarters.
How do I open the number wheel in the dresser?