A colourless water soluble solid 'X' on heating gives equimolar quantities of Y and Z. Y gives dense white fumes HCl and Z does so with NH3 . Y gives brown precipitate with Nessler's reagent and Z gives white precipitate with nitrates of Ag+ , Pb2+ and Hg+ . 'X' is:
a. NH4Cl
b. NH4NO3
c. NH4NO2
d. FeSO4