Concept:
Different substitution reactions on benzene produce different functional groups depending on reagents and catalysts.
Ammoniacal AgNO\(_3\) oxidizes aldehydes but not hydrocarbons.
Step 1: Identify X (oxidizable by Tollens reagent).
Tollens reagent oxidizes aldehydes.
Thus X must contain \(-CHO\) group.
Gattermann-Koch reaction introduces formyl group:
\[
C_6H_6 \xrightarrow[AlCl_3/CuCl]{CO + HCl} C_6H_5CHO
\]
So X is benzaldehyde.
Step 2: Identify Y (not oxidized by AgNO\(_3\)).
Friedel–Crafts reaction introduces alkyl group:
\[
C_6H_6 \xrightarrow{RCl/AlCl_3} C_6H_5R
\]
No aldehyde group present, so not oxidized by Tollens reagent.
Thus Y is alkylbenzene.
Step 3: Match reactions.
\[
A = Gattermann-Koch,\quad B = Friedel-Crafts
\]
Hence correct option:
\[
\boxed{C}
\]