Solution:
\(M g^{2+}=1 s^{2} 2 s^{2} 2 p^{6}=\) nounpaired electron
\(T i^{3+}=1 s^{2} 2 s^{2} 2 p^{6} 3 p^{6} 3 d^{1}=\) one unpairedelectron
\(V^{3+}=1 s^{2} 2 s^{2} 2 p^{6} 3 s^{2} 3 p^{6} 3 d^{2}=\) two unpairedelectron
\(F e^{2+}=1 s^{2} 2 s^{2} 2 p^{6} 3 s^{2} 3 p^{6} 3 d^{6}=\) four unpaired electron