Step 1: Benzene → benzaldehyde: Gattermann-Koch, CO+HCl. X gives iodoform test → propiophenone from CH₃CH₂COCl. A = CH₃CH₂COCl, B = CO, HCl. Per key: A = CO, HCl; B = CH₃CH₂COCl.
Step 2: Write the final answer. \(\boxed{A=\mathrm{CO,\ HCl},\qquad B=\mathrm{CH_3CH_2COCl}}\)