Magnesium has two electrons in its outer shell and chlorine has seven electrons in its outer shell how are the electrons transferred between these atoms