Solution:In the electron configuration of atoms, the M shell corresponds to the third principal energy level (n = 3). According to the formula 2n² , where n is the principal quantum number, the maximum number of electrons that can be accommodated in the M shell is 2 × 3² = 18.