\(\left(x+3\right)\left(x^2-3x+9\right)-x\left(x^2-9\right)=27\\ x.x^2-x.3x+x.9-x.x^2+x.9=27\\ x^3-3x^2+9x-x^3+9x=27\\ 3x^2+18x=27\\ 21x^2=27\\ x^2=\dfrac{9}{7}\\ \Rightarrow x=\sqrt{\dfrac{9}{7}}\)
\(\left(x+3\right)\left(x^2-3x+9\right)-x\left(x^2-9\right)=27\\ x.x^2-x.3x+x.9+3.x^2-3.3x+3.9-x.x^2+x.9=27\\ x^3-3x^2+9x+3x^2-9x+27-x^3+9x=27\\ 9x+27=27\\ 9x=0\\ x=0\)