Every pupil in a class either swims or dances.

Three fifths of the class swim and three fifths dance.
Five pupils both swim and dance.

How many pupils are in the class?