Two elements, X and Y, are each added separately to cold water.
X reacts rapidly with cold water, producing a colourless gas that burns with a squeaky pop. The resulting solution turns universal indicator purple.
Y does not react with cold water. When steam is passed over heated Y, a black solid forms and a colourless gas is produced that burns with a squeaky pop.
Suggest the group of the Periodic Table to which X and Y each belong. Explain your reasoning.