Molecule Na2X on treatment with dilute sulphuric acid forms a molecule ‘Y’ and liberates a rotten smelling gas. The liberated gas undergoes a double decomposition reaction with molecule ‘Z’, forming a black precipitate and vinegar. Identify the groups in Y and Z.