(5-x)^2=24,x^2-10x+25=24,x^2-10x=-1,
原等式=3x^2(x^2-10x)+2x^3-17x^2+2x-10
=2x^3-20x^2+2x-10
=2x(x^2-10x)+2x-10
=-10