(x^3)^2*x^3-(3x^3)^3+(5x)^2*x^7
= x^(3*2)x^3-27x^(3*3)+25x^2x^7
=x^(6+3)-27x^(3*3)+25x^(2+7)
=x^9-27x^9+25x^9
=-x^9