
ii. Formation of Magnesium oxide
When magnesium reacts with oxygen, the magnesium atom transfers its two outermost electrons to an oxygen atom. By losing 2 elections, the magnesium atoms form a magnesium ion (Mg2+) and by gaining 2 electrons, the oxygen atom forms an oxide ion (O2-).

Formation of Sodium oxide
Two sodium atoms transfer their 2 outermost electrons to an oxygen atom. By losing two electrons, the two sodium atoms form two sodiumions (2Na+). And by gaining two electrons, the oxygen atom forms an oxide ion (O2-.)

iii. The ions present in sodium oxide compound (Na20) aie sodium ions (2Na+ and oxide ions (O2-).
The ions present in Magnesium oxide compound (MgO) are magnesiumions Mg2+ and oxide ions (O2-).