i) There are 2 electrons in the valence shell of a magnesium atom.
ii) there are 7 electrons in the valence shell of a chlorine atom.