Z is a white solid that dissolves in water. A portion of Z is heated using a Bunsen burner until no more change is seen. When the residue is mixed by shaking with water, a solution is produced and no solid is left behind. What could Z be?
- A$\text{MgCO}_3$
- B$\text{Mg(NO}_3)_2$
- C$\text{BaCO}_3$
- D$\text{Ba(NO}_3)_2$