When the first energy level has 2 electrons, the next electrons go into the second energy level until the second level has 8 electrons. When the second energy level has 8 electrons, the next electrons go into the third energy level until the third level has 8 electrons.
hope this helped, please mark brainliest :)