Name the gas produced when aluminium foil reacts with :
(a) dilute hydrochloric acid.
(b) sodium hydroxide solution.