We are given the following information:
- Compound X (C7H7Cl) reacts with ammonia to give Compound Y (C7H9N).
- Compound Y reacts with two moles of CH3Cl to give N,N-Dimethylphenylmethanamine.
The key reaction is the ammonolysis of benzylchloride (C6H5CH2Cl), which reacts with ammonia to form benzylamine (C6H5CH2NH2). The benzylamine further reacts with CH3Cl to give N,N-Dimethylphenylmethanamine.
Thus, X is benzylchloride and Y is benzylamine, and the correct answer is (C) Benzylchloride and Benzylamine.