Explain the formation of an ionic compound between a metal and a non- metal by transfer of electrons with Mg as the metal and chlorine as the non metal to illustrate your answer. Give the reaction that occurs.