How did the ships help the Greeks win the battle of Selim?

At the Battle of Salamis, the Greek ships were built specifically for fighting at sea, whereas the Persian ships were not, and also the Greeks were much better sailors. The mast and sails were taken down and stowed for fighting, and the ships were maneuvered entirely by the oarsmen. The Persian ships were sunk by ramming them.