\(3x^4y-12x^2y^3=3x^2y\left(x^2-4y^2\right)=3x^2y\left(x-2y\right)\left(x+2y\right)\)
\(x^2-y^2-8y-16=x^2-\left(y^2+8y+16\right)=x^2-\left(y+4\right)^2=\left(x+y+4\right)\left(x-y-4\right)\)
\(x^3+3x^2+4x+12=x^2\left(x+3\right)+4\left(x+3\right)=\left(x^2+4\right)\left(x+3\right)\)
\(3x^2-6xy+3y^2-27=3\left[\left(x-y\right)^2-9\right]=3\left(x-y-3\right)\left(x-y+3\right)\)