(x-2)(x+2)(x+4)x+12
=x(x+2)(x-2)(x+4)+12
=(x^2+2x)(x^2+2x-8)+12
=(x^2+2x)^2-8(x^2+2x)+12
=(x^2+2x-2)(x^2+2x-6)