The maximum number of electrons that can have principal quantum number, n=3 and spin quantum number ms=-12, is:
(9)
With principal 'n', the total number of electrons that can be present is given as 2n2.
∴ If n=3, total electrons can be 2.32=18.
Out of them, half can have ms=-12