Answer
Please see the work below.
Work Step by Step
The total number of electrons in each orbital can be calculated using the formula $2\times(2l + 1)$.
The s orbital has $l$ value = 0.
Therefore, the total number of electrons that can be accommodated = $2\times(2 \times 0 + 1) = 2 $.
The p orbital has $l$ value = 1.[There are three degenerate p orbitals]
Therefore, the total number of electrons that can be accommodated = $2\times(2 \times 1 + 1) = 6 $.
The d orbital has $l$ value = 2.[There are five degenerate d orbitals]
Therefore, the total number of electrons that can be accommodated = $2\times(2 \times 2 + 1) = 10 $.
The f orbital has $l$ value = 3. [There are seven degenerate d orbitals]
Therefore, the total number of electrons that can be accommodated = $2\times(2 \times 3 + 1) = 14 $.
Hence,
The maximum number of electrons in 3s subshell = 2.
The maximum number of electrons in 3d subshell = 10.
The maximum number of electrons in 4p subshell = 6.
The maximum number of electrons in 4f subshell = 14.
The maximum number of electrons in 5f subshell = 14.