\(a,\left(x+2\right)\left(x^2-2x+4\right)=x^3+2x\)
\(\Rightarrow\)\(x^3+8-x^3-2x=0\)
\(\Rightarrow\)\(2x=8\)
\(\Rightarrow\)\(x=4\)
\(b,\left(3x-2\right)\left(9x^2+6x+4\right)-27x^3=3x-5\)
\(\Rightarrow\)\(27x^3-8-27x^3-3x+5=0\)
\(\Rightarrow\)\(3x=-3\)
\(\Rightarrow\)\(x=-1\)