what happens when a acid is added to a carbonate

acid+carbonate yeilds a metal salt, water, and carbon dioxide.