(a) X is the metal zinc (Zn) and Y is hydrogen gas.
Zinc reacts with hydrochloric acid and forms zinc chloride salt with the liberation of hydrogen gas (Y), which burns with a 'pop' sound. Zinc displaces hydrogen from hydrochloric acid.
Hence, X is zinc and Y is hydrogen.
(b) The chemical equation is as follows.
(i) Zn + 2HCl ZnCl2 + H2 ↑
(ii) 2NaOH + Zn Na2ZnO2 + H2