`G=(3x-1)(9x^2+3x+1)+(1-3x)^3-3x(9x-3)-(x+2)^3+x(x^2+6x-12)`
`=27x^3-1+(-27x^3+27x^2-9x+1)-27x^2+9x-(x^3+6x^2+12x+8)+x^3+6x^2-12x`
`=27x^3-1-27x^3+27x^2-9x+1-27x^2+9x-x^3-6x^2-12x-8+x^3+6x^2-12x`
`=(27x^3-27x^3-x^3+x^3)+(27x^2-27x^2-6x^2+6x^2)+(-9x+9x-12x-12x)+-1+1-8`
`=-24x-8`
Vậy giá trị biểu thức phụ thuộc vào giá trị của biến x.