see from periodic table the proton or atomic number of elements u want to know about then as u know first electron shell can hold 2 electrons 2nd can hold eight as well as all others........protons are equal to electrons so divide proton number into shells but remember to use amounts which it can hold