The salt that reacts with dilute hydrochloric acid to produce a pungent smelling gas which…