Magnesium reacts with an element (X) to form an ionic compound. If the ground state electronic configuration of (X) is the simplest formula for this compound is
Electronic configuration of X is It is a 15th group element.it requires three electrons to attain octet. So, valency of X will be 3 .
Magnesium ion
Formula :