The correct option is B X: H2O, Y: CO2
Bicarbonate salt of a metal reacts with dilute acid to give metallic salt along with carbon dioxide and water. So, sodium bicarbonate reacts with dilute hydrochloric acid to give sodium chloride salt, water and carbon dioxide. The reaction is given below:
NaHCO3(s)+HCl(aq) →NaCl(aq)+H2O(l)+CO2(g)
So, X and Y are H2O and CO2.