Step 1: First chlorination of ethanol.
Chlorine acts as an oxidizing agent in presence of light and gives acetaldehyde:
\[
C_2H_5OH + Cl_2 \rightarrow CH_3CHO + 2HCl
\]
So:
\[
X = CH_3CHO
\]
Step 2: Further chlorination of acetaldehyde.
Acetaldehyde undergoes successive substitution of \(\alpha\)-hydrogens to form chloral:
\[
CH_3CHO + 3Cl_2 \rightarrow CCl_3CHO + 3HCl
\]
So:
\[
Y = CCl_3CHO
\]
Final Answer:
\[
\boxed{X = CH_3CHO,\; Y = CCl_3CHO}
\]