The correct option is D 2, 8
Atomic number of magnesium atom = 12.
It has 12 protons, 12 electrons and 12 neutrons.
Electronic configuration is the distribution of electrons in the shells.
Maximum number of electrons that a shell can accomodate is given by 2n2, where 'n' denotes the shell number. The electronic configuration of magnesium atom is 2, 8, 2. Magnesium atom loses 2 electrons from its outermost shell to form Mg2+ ion. Hence, Mg2+ ion has total 10 electrons. Thus, electronic configuration of Mg2+ ion is 2, 8.