Bromine water is an orange solution of bromine. It becomes colorless when it is shaken with an alkene. Alkenes can decolorize bromine water, but alkanes cannot.
X is ethene which decolorizes bromine water showing that ethene is unsaturated.
Y is an alkane.