Step 1 is a Wurtz-Fittig reaction: C$_6$H$_5$CH$_2$Cl reacts with CH$_3$CH$_2$CH$_2$Cl in presence of Na/dry ether to form Propylbenzene (X).
Step 2: Friedel-Crafts alkylation with CH$_3$CH$_2$CH$_2$Cl and AlCl$_3$ gives sec-Butylbenzene (Y) as major product due to carbocation rearrangement.