The metal in the nitrate has a valency of 2, as indicated by the formula \( M(NO_3)_2 \). For the phosphate, the phosphate ion \( PO_4^{3-} \) has a valency of 3. To balance the charges, we need three \( M^{2+} \) ions for every two \( PO_4^{3-} \) ions. Therefore, the formula of the phosphate will be \( M_3(PO_4)_2 \).