DEAR STUDENT,
When calcium carbonate reacts with hydrochloric acid, it produces carbon dioxide gas with effervescence. The carbon dioxide used as a fire extinguisher. Hence, it extinguishes a burning candle. Therefore, the metal compound A is calcium carbonate.
CaCO3 + 2HCl ⇨ CaCl2 + CO2 + H2O
REGARDS