a)\(12x^3+4x^2-27x-9\)
\(=12x^3-27x+4x^2-9\)
\(=3x\left(4x^2-9\right)+\left(4x^2-9\right)\)
\(=\left(3x+1\right)\left(4x^2-9\right)\)
\(=\left(3x+1\right)\left(2x-3\right)\left(2x+3\right)\)
b)\(7x\left(y-4\right)^2-\left(4-y\right)^3\)
\(=7x\left(y-4\right)^2+\left(y-4\right)^3\)
\(=\left(y-4\right)^2\left(7x+y-4\right)\)