The metal which produces hydrogen gas on reaction with dilute hydrochloric acid as well as sodium hydroxide solution is


Aluminium reacts with hydrochloric acid and also with sodium hydroxide solution to produce hydrogen gas.

9
1