The maximum number of electrons that can occupy the shell having a principal quantum number of 3 is