how can x squared-4x+24 be factored
It doesn't factor nicely if you want it in the form (x - a)(x - b) with a and b as whole numbers.
.