When a metal reacts with an acid, hydrogen gas and a metal salt are formed.
Metal + acid → salt + hydrogen
2Na + 2HCl → 2NaCl + H2