What is the action of acids

What is the action of acids with carbontates and metal hydrogen carbonates ?

The reaction of metal carbonates and hydrogen carbonates with acids give a corresponding salt, C{{O}_{2}} and water.