while working together in small teams on different parts of the schooner , hoping to restore it to its original condition , each man is finally able to win the hand of the woman who had captured his heart .