How did the Greeks defeat the Persian army?

AThey used an effective military formation known as a phalanx.
BThey captured the Persian emperor in a raid on his headquarters.
CThey had many more soldiers than the Persians did.
DThey surprised the Persians by crossing the Aegean Sea to attack.