Formation of Weak Acids
The reaction of a strong acid with an ionic salt containing the negative ion of a very weak acid produces the weak acid and goes essentially to completion. The weaker the acid formed the more nearly complete is the reaction. You have a table of  acid strengths in your databook.