Need similar questions for practice

Show the electron transfer in the formation of -

  1. MgCl2
    2)NaCl