We should start with the atoms that have atomic numbers between 1 and 18. There is a 2-8-8 rule for these elements. The first shell is filled with 2 electrons, the second is filled with 8 electrons, and the third is filled with 8. You can see that sodium (Na) and magnesium (Mg) have a couple of extra electrons.