When one magnesium atom and two chlorine atoms transfer electrons, magnesium loses two electrons, and each chlorine gains
one. What charge will magnesium have after the transfer of electrons?