Azimuthal quantum number, 'l', can take only certain values. For every 'n', l varies from 0 to n-1.
orbital l
s 0
p 1
d 2
f 3
. .
. .
. .
Hence in the case of n=2, the only possible values of 'l' are 0 and 1. Hence, only 2s and 2p can exist.
Similarly so with n=3. Only 3s, 3p and 3d can exist