When a substance A reacts with H2O, it produces a combustible gas B and solution of C in water. When another substance D reacts with this solution of C, it produces the same gas B on warming. But D can produce the same gas B on reaction with dil. H2SO4 at room temperature. A imparts golden yellow colour to Bunsen flame. A, B, C and D respectively are