n=3 means that there are s, p, and d shells involved.  The s shell can accomidate 2 electrons, the p, 6 and the d, 10, so a total of 18 electrons can be accommodated, so that's 9 pairs of electrons.
How many electron pairs with principal quantum number n=3 can be accomodated in an atom?