The major product of the reaction is given by the option (B). In the first step, acid chloride is more reactive than alkyl halide. Hence, -COCl group will react first. In the second step, Friedel Craft's alkylation occurs in a position that is ortho to alkoxy group and para to methoxy group. Both methoxy and alkoxy groups are ortho para directing groups.