Aqueous solutions of magnesium nitrate and sodium phosphate are mixed together, forming solid magnesium phosphate and aqueous sodium nitrate. Write the balanced chemical equation for the reaction. Phases are optional.