A mixture consists only of magnesium carbonate and barium carbonate. A sample of this mixture is dissolved in nitric acid, forming a solution. How can this solution be treated so that a magnesium compound and a separate barium compound are obtained?
- 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.