When metal X reacts with dilute HCl then bubbles of gas Y are formed. Moreover, when this metal X reacts with cold water it will again produce this gas Y. Identify X and Y.
Metals on reaction with acids, produce metal salts and hydrogen gas except copper, gold etc.
When sodium reacts with dilute HCl it forms sodium chloride and hydrogen gas. The reaction involved is:
Sodium + Hydrochloric Acid→Sodium chloride + Hydrogen gas
Moreover, when it reacts with the cold water it will form sodium hydroxide and hydrogen gas. The hydrogen gas formed immediately catches fire because this reaction generates a lot of heat.
Sodium + Water→Sodium hydroxide + Hydrogen gas
So, X is sodium and Y is hydrogen.