What is the difference between 3/2 valves and 5/2 valves?

3/2 valves are used on single acting cylinders. They have 3 ports and 2 positions.

5/2 valves are used on double acting cylinders. They have 5 ports and 2 positions.