Answer:
See explanation
Explanation:
The image attached describes the formation of magnesium fluoride.
Magnesium has two valence electrons while fluorine has seven valence electrons. Magnesium can now transfer one electron each to two fluorine atoms thereby forming the compound MgF2.
This has been shown pictorially in the image attached to this answer.