The Math Counts Club had a party at their school. There were 20 cookies and 40 slices of pizza to be shared equally. Each student had the same number of whole cookies and the same number of slices of pizza with nothing left over. How many students could have been at the party? LCM or GCF?