Input (grade 12): Since their strategy required both Thermopylae and Artemisium to be held, and given their losses, the Allies decided to withdraw to Salamis.
Output (grade 7): Their strategy was to hold both Thermopylae and Artemisium. So, given their losses, the Allies decided to withdraw to Salamis.