Here's why:
* Atomic Number: Magnesium's atomic number is 12. This number represents the number of protons in an atom's nucleus.
* Neutral Atoms: In a neutral atom, the number of protons (positive charge) is equal to the number of electrons (negative charge).
* Therefore: Since magnesium has 12 protons, it also has 12 electrons.