All experiments / Tummy ache medicine
Milk of magnesia is a base. It cancels out extra stomach acid and leaves a salt and water. That is how tummy medicine works.
Neutralization
In words: 1 particle of milk of magnesia and 2 of hydrochloric acid make 1 of magnesium chloride, 2 of water. The equation is balanced, which means every atom that goes in comes out again in the products.
The recipe needs exactly 1 of Mg(OH)2 for every 2 of HCl. Add extra of one ingredient and the spare particles have no partner, so they are left over unchanged. The ingredient that runs out first is called the limiting reactant. Try different amounts in the lab to see it happen.
In a real lab: Hydrochloric acid burns skin.
Try it in the lab