Nancy Drew: Ransom of the Seven Ships Hints

How do I solve the dials at the end?