An ionic compound is formed by exchange of valency between bonding ions.
The formula of an ionic compound formed from O2− with;
Magnesium ion has a charge of 2+ and oxygen ion has a charge of 2-, when the two are combined, we obtain a compound of formula MgO.
Sodium ion has a charge of +1 and oxygen ion has a charge of 2-, when the two are combined, we obtain a compound of formula Na2O.
Aluminium ion has a charge of +3 and oxygen ion has a charge of -2, when the two are combined, we obtain a compound of formula Al2O3.
Learn more: https://brainly.com/question/11527546