In the following reaction sequence the major products A and B are:
Tagged Preparation of carboxylic acids. Machine-assigned, so read it as a strong shortlist rather than a verdict.