(5x-x²)²-2(x²-5x)-24
=(5x-x²)²+2(5x-x²)-24
=[(5x-x²)+6][(5x-x²)-4]
=(x²-5x-6)(x²-5x+4)
=(x+1)(x-6)(x-1)(x-4)