Step-by-step explanation:
Number of moles equal to the given mass divided by molar mass of the element or compound.
Mathematically, No. of moles =

The given mass is
g and molar mass is 24.30 g/mol.
Therefore, calculate the number of moles as follows.
No. of moles =

=

=
mol
=
mol
or, = 2000 mol
Thus, we can conclude that
g of Mg has 2000 moles.