Hydrochloric acid reacts with a metal X to form a gas Y which burns with a 'pop' sound. Sodium hydroxide solution also reacts with the same metal X (on heating) to form the same gas Y.
(a) Name X and Y
(b) Write the chemical equation of the reaction of metal X with (i) hydrochloric acid, and (ii) sodium hydroxide solution.