It depends on the atom. For example, if the atom is in period 2 of the periodic table, it wants to be like the noble gases in column 18 of the periodic table. The electrons in each energy level follows the following pattern: 2, 8, 8 (2 electrons in the first energy level, 8 in the second, and 8 in the third).