Suggest a synthetic route to amide C from the alkyl chloride B (reaction mechanisms are not required). Standard reagents and solvents may also be used.
In this question immediate reaction is to make a grignard reagent with B by reacting it with magnesium and have it attack $\ce{COX(N(Me)2)}$ to form C.
I'm not sure how it would be possible to make $\ce{COX(N(Me)2)}$ from standard reagents.
Are there any obvious synthesis ideas I'm missing in making $\ce{COX(N(Me)2)}$ as surely if I started from $\ce{COXY}$ where $\ce{X}$ and $\ce{Y}$ are Leaving groups, I would end up with $\ce{CO(N(Me)2)2}$ on reaction with $\ce{NH(Me)2}$ which would give an alcohol as the end product, as the amine isn't a good leaving group?
Also would $\ce{COXY}$ i.e. $\ce{COCl2}$ even count as a standard reagent? I have no idea what that really entails.