Answer :

30x^2 - 5X^3 = 5*6*x^2 - 5*x^2*x = 5x^2( 6 - x ).