Barium carbonate is the salt , containing barium and carbonate ions. It has low solubility in water, but reaction with an acid consumes carbonate and can release carbon dioxide.
Precipitation and acid dissolution therefore describe different conditions for the same material. This is a useful example of how acid-base chemistry can shift a solubility equilibrium.
New to topics? Read the docs here!