The correct option is C X = S; Y = O2
When hydrogen sulphide gas reacts with chlorine gas, it produces sulphur, which is a solid substance, and hydrogen chloride gas.
H2S+Cl2→2HCl+S
When lead nitrate is heated, it breaks into lead monoxide, nitrogen dioxide (a reddish-brown gas), and oxygen.
2Pb(NO3)2→2PbO+4NO2+O2