\(a,\left(x-3\right)\left(x^2+3x+9\right)+x\left(x+2\right)\left(2-x\right)=0\\ \Rightarrow\left(x^3-27\right)+x\left(4-x^2\right)=0\\ \Rightarrow x^3-27+4x-x^3=0\\ \Rightarrow4x-27=0\\ \Rightarrow4x=27\\ \Rightarrow x=\dfrac{27}{4}\)
\(b,\left(x+1\right)^3-\left(x-1\right)^3-6\left(x-1\right)^2=-10\\ \Rightarrow\left(x^3+3x^2+3x+1\right)-\left(x^3-3x^2+3x-1\right)-6\left(x^2-2x+1\right)=-10\\ \Rightarrow x^3+3x^2+3x+1-x^3+3x^2-3x+1-6x^2+12x-6+10=0\)
\(\Rightarrow12x+6=0\\ \Rightarrow12x=-6\\ \Rightarrow x=-\dfrac{1}{2}\)