This option is correct because phthalimide is first of all treated with KOH to form potassium phathalimide, which is then heated with alkyl halides which gives N-alkyl phthalimide. Then, it is hydrolysed by the HCl to form phthalic acid, this is the Gabriel synthesis, while phenol reacts with diethyl sulphonate catalysed by strong base to form the anisole.