What do a 12.01 g sample of carbon and 24.3 g sample of magnesium have in common?

A. They have the Same density
B. Each contains 0.5 moles of particles
C. Each contains 6.02 x 10^23 atoms
D. They have the same number of valence electrons