In order for the human being stomach to digest food, it uses hydrochloric acid (HCl). This is a very effective an dstrong acid that can burn the lining of the stomach and even cause ulcer if this lining does not contain enough mucus.
Back on track, a reaction between an acid and a base usually yields a salt and water. The two bases that we will use in the reaction with HCl are Mg(OH)2 and CaCO3 (note that (OH)- and (CO3)- both define basis)
MAKE SURE TO BALANCE YOU EQUATION, WHERE THE NUMBER OF MOLECULES ENTERING SHOULD BE EQUAL TO THE NUMBER OF MOLECULES RESULTING.
Equation #1:
2HCl + Mg(OH)2 --> 2H2O + MgCl2
MgCl2 is the salt
Equation#2:
2HCl + CaCO3 --> H2O + CO2 + CaCl2
CaCl2 is the salt
Carbon dioxide is formed as a result of the additional carbon carbon, the reaction ideally outputs H2CO3 which is a very weak base the breaks into water and CO2