The cast of the play had a party. The drama teacher served 20 cookies and 40 carrot sticks as refreshments. Each cast member ate the same number of whole cookies and the same number of carrot sticks. Nothing was leftover. The drama teacher did not eat. How many cast members must have been at the party?