To fulfill the octet rule, the first energy level (also known as the first shell) can hold a maximum of 2 electrons. The second energy level can hold a maximum of 8 electrons.
Therefore, the first energy level holds 2 electrons, and the second energy level holds 8 electrons.