Answer: D
Step 1: NaHCOX3 removes benzoic acid (6.4−4.20=2.2) but not 4-nitrophenol (6.4−7.15=−0.75). Step 2: carbonate with 4-nitrophenol has logK=10.3−7.15=3.15 (complete), but with 4-methylphenol only 10.3−10.2=0.1. So 4-nitrophenol is extracted in the second step; 4-methylphenol goes only with NaOH.