Answer:
The electron configuration of magnesium (Mg) in its neutral state is 1s2 2s2 2p6 3s2. When magnesium loses two electrons to form a magnesium ion with a 2+ charge (Mg2+), its electron configuration becomes 1s2 2s2. This means that the 3s2 subshell is now empty, and the magnesium ion has a full outer shell with a total of two electrons. The electron configuration of Mg2+ can also be written as [Ne] 3s2.
HOPE IT HELPS