Respuesta :

Number of atoms = moles of magnesium x 6.02x10^23
                               = 5x6.02x10^23
                               = 3.01x10^24 atoms.

Hope this helps!