3
The electronic configuration of magnesium (atomic number 12) with 12 electrons and 3 shells is 2-8-2. This indicates that the first shell (K shell) has 2 electrons, the second shell (L shell) has 8 electrons, and the third shell (M shell) has 2 electrons.
Added 6/29/2023 12:56:25 PM
This answer has been confirmed as correct and helpful.