The third electron shell (n=3) can hold a maximum of 18 electrons, distributed across its various orbitals.
The breakdown of orbitals in the third shell is:
So, the total capacity is 2+6+10=18 electrons.