The correct option is D X is Zn and Y is hydrogen.
Amphoteric metals are ones that can react with both acids and bases. Examples include: aluminium, tin, lead, zinc. When bases like NaOH or KOH react with amphoteric metals, salt and hydrogen gas are formed as products.
Here, sodium hydroxide on reaction with zinc gives sodium zincate and hydrogen gas. The reaction occurs as follows:
2NaOH(aq)+Zn(s)→Na2ZnO2(aq)+H2(g)