Elementary analysis of carboxylic acids

Exercise 5

A compound has the molecular formula $C_7H_{14}O_2$. Its hydrolysis gives acid $B$ and a secondary alcohol $C$. $B$ reacts with $PCl_5$ to give a compound $D$, which in turn reacts with ammonia to obtain a compound $E$ with saturated branched chain and molar mass $M =87\frac{g}{mol}$ Are asked 1) the functions of $A$, $D$ and $E$ 2) the condensed formulas of $E$, $D$, $B$, $C$ and $A$

1) $E$ : unsubstituted amide on the N atom $D$ : acid chloride $A$ : ester 2) General formula of E: $C_nH_{2n+1}NO$ $12n$ $+$ $2n$ $+$ $1$ $+$ $14$ $+$ $16$ $=$ $87$ $n$ $=$ $4$ Molecular formula of E: $C_4H_9NO$ $E$: $CH_3CH(CH_3)CONH_2$ $D$: $CH_3CH(CH_3)COCl$ $B$: $CH_3CH(CH_3)COOH$ Molecular formula of $B$: $C_4H_8O_2$ General formula of $C$: $C_nH_{2n+2}O$ Hydrolysis of $A$: $C_7H_{14}O_2$ $+$ $H_2O$ $\rightarrow$ $ C_nH_{2n+2}O$ $+$ $C_4H_8O_2 $ so $n$ $=$ $3$ Molecular formula of $C$: $C_3H_8O$ $C$: $CH_3CHOHCH_3$ $A$: $CH_3CH(CH_3)COOCH(CH_3)_2$ (methylethyl)methylpropanoate