factor (x-3)^2 +10(x-30)+24

x^2 - 6x + 9 + 10x - 300 + 24

Combine like terms.

x^2 + 4x - 267

I can combine, but I can't find the factors. I hope this what you really wanted.