For example , tin ( II ) chloride is made when tin dissolves in hydrochloric acid . Tin ( IV ) halides are made when tin reacts with the halogens .
Tin combines directly with chlorine forming tin ( IV ) chloride , while reacting tin with hydrochloric acid in water gives tin ( II ) chloride and hydrogen gas .