Here substance X is Sodium hydrogen carbonate and Y is carbon dioxide gas NaHCO3(s) + HCl → NaCl(aq) + CO2(g) + H2O(l)