$CH_3CHO$ $+$ $CH_2(COOH)_2$ $\xrightarrow {\Delta}$ $X$
$X-Y-Z$
$[Figure]$ $\xrightarrow[{(ii){H_2}O}]{{(i)\,{C_2}{H_5}MgBr}}A\xrightarrow{{HCl}}B$