\[
\begin{array}{|l|c|c|c|}
\hline \text{cation} & \text{anion} & \text{empirical formula} & \text{name of compound} \\
\hline \mathrm{Mg}^{2+} & \mathrm{P}^{3-} & \boxed{\mathrm{Mg}_3\mathrm{P}_2} & \boxed{\text{Magnesium phosphide}} \\
\hline \mathrm{Mg}^{2+} & \mathrm{S}^{2-} & \boxed{\mathrm{MgS}} & \boxed{\text{Magnesium sulfide}} \\
\hline \mathrm{Mg}^{2+} & \mathrm{N}^{3-} & \boxed{\mathrm{Mg}_3\mathrm{N}_2} & \boxed{\text{Magnesium nitride}} \\
\hline \mathrm{Mg}^{2+} & \mathrm{O}^{2-} & \boxed{\mathrm{MgO}} & \boxed{\text{Magnesium oxide}} \\
\hline
\end{array}
\]