Solution (source code)

= Solution

The two <dot products> are $\mathbf a\cdot\mathbf b=2-1-6=-5$ and $\mathbf b\cdot\mathbf c=-1-3=-4$. Therefore
$$
\boxed{(\mathbf a\cdot\mathbf b)\mathbf c+\mathbf a(\mathbf b\cdot\mathbf c)
=-5(0,1,-1)-4(1,1,-2)=(-4,-9,13)}.
$$