Firstly, toluene was synthesized by F-C alkylation (using CH3Cl+AlCl3), then nitration (this can be controlled in para position), and finally methyl group was oxidized to carboxyl group.
If nitration is carried out first, it is equivalent to introducing a passivation group on the benzene ring, so it is difficult to introduce methyl.