What mass of magnesium contains the same number of atoms as 8.0g of calcium?
Molar Mass of Magnesium
Molar Mass of Calcium
The number of atoms of Mg should be the same as the number of atoms of Ca, so:
You can also eliminate the step of converting to atoms, as a mol of any substance contains