First experiment: hydrogen. An acid reacts with a metal to give a salt and hydrogen:
Zn(s)+H2SO4(aq)→ZnSO4(aq)+H2(g)
Second experiment: carbon dioxide. An acid reacts with a metal carbonate to give a salt, water and carbon dioxide:
Na2CO3(s)+2HCl(aq)→2NaCl(aq)+H2O(l)+CO2(g)
Why the bubbles behave differently: a soap bubble rises if the gas inside it is lighter than the air around it, and sinks if it is heavier. Hydrogen is the lightest of all gases (molecular mass 2 u), far lighter than air, so the hydrogen-filled bubbles float up. Carbon dioxide (molecular mass 44 u) is heavier than air, which is mostly nitrogen (28 u) and oxygen (32 u), so the carbon dioxide-filled bubbles sink.
Confirming tests:
- Hydrogen: a burning splint brought near the bubbles or the gas makes it burn with a pop sound.
- Carbon dioxide: passed through lime water, it turns the lime water milky.
