Phosphorus forms a 3- ion, and Magnesium forms a 2+ ion. The formula for the compound magnesium phosphide is:

a) MgP
b) Mg3P2
c) Mg2P3
d) MgP2