In presence of FeCl3 and in dark, electrophilic substitution on the benzene ring by Cl+ion at ortho and para positions occurs to give o- and p- chlorotoluene.
Since methyl group activates the ring at ortho and para positions more than meta positions, the electroscopic substitution occurs mostly at these positions. C6H5−CH3+Cl2FeCl3{o-chlorotoluene (X)+p-chlorotoluene }
Hence, X is o- and p- chlorotoluene.
On the other hand, if chlorine reacts with toluene in the absence of a catalyst but in the presence of UV light, substitution happens in the methyl group rather than the ring. C6H5−CH3+Cl2 UV light (Y)C6H5−CCl3
Hence, Y is trichloromethylbenzene.