1.
A and B: CH3CH2CH2CH2COOH \xrightarrow{Br2/red P} A \xrightarrow{KOH(alc)} B