A teacher provides 4 sets of cupcakes for the class party. Each set contains 10 cupcakes. If the class has 24 students and each student eats 1 cupcake, how many are leftover?
A 0

B 40

C 16

D 24