The gas produced by the reaction of a metal compound with hydrochloric acid is carbon dioxide, which also extinguishes a burning candle.
Again, one of the products is calcium chloride, which is a salt, indicating that the metal is calcium and the metal compound is calcium carbonate.
Word equation:
Calcium carbonate + Hydrochloric acid → Calcium chloride + Carbon dioxide + Water
Skeletal equation:
CaCO3(s)+HCl(aq)→CaCl2(aq)+CO2(g)+H2O(l)
Balanced equation:
CaCO3(s)+2HCl(aq)→CaCl2(aq)+CO2(g)+H2O(l)