A colourless crystalline salt, on being heated, gives a colourless gas with a pungent smell. On being passed through an AgNO3 solution, this gas forms a white precipitate insoluble in HNO3 but readily soluble in an NH3 solution. Which of the following reactions can lead to the above observation ?