Answer: Ionic formula will be
.
Step-by-step explanation:
and
ions will form a ionic compound. Ionic compounds have both metals and non-metals.
Here
is a metal and
is a non-metal.
The net charge on any compound must be 0.
So we need 2 phosphate ions to balance the charge on
ions. Similarly we need 3 Magnesium ions to balance the charge on
ions.
Criss-crossing the charges, we will get the formula as

Criss-crossing is shown in the image below.