An ore includes magnesium carbonate and barium carbonate. A portion of the ore is dissolved in nitric acid. How can this solution be treated to obtain a magnesium compound and a separate barium compound?
- AAdd HCl(aq), filter off the solid barium chloride.
- BAdd HCl(aq), filter off the solid magnesium chloride.
- CAdd $\text{H}_2\text{SO}_4$(aq), filter off the solid barium sulfate.
- DAdd $\text{H}_2\text{SO}_4$(aq), filter off the solid magnesium sulfate.