a.
\(\left(x+2\right)^3-x^2\left(x+6\right)=0\)
\(\Leftrightarrow x^3+6x^2+12x+8-x^3-6x^2=0\)
\(\Leftrightarrow12x+8=0\)
\(\Leftrightarrow x=-\dfrac{2}{3}\)
b.
\(\left(x-3\right)^3-x^2\left(x+2\right)=-11x^2-108\)
\(\Leftrightarrow x^3-9x^2+27x-27-x^3-2x^2=-11x^2-108\)
\(\Leftrightarrow-11x^2+27x-27+11x^2+108=0\)
\(\Leftrightarrow27x+81=0\)
\(\Leftrightarrow x=-3\)