A, \(x^3-4x^2-9x+36=x^2\left(x-4\right)-9\left(x-4\right)\)
\(=\left(x-4\right)\left(x^2-9\right)=\left(x-4\right)\left(x-3\right)\left(x+3\right)\)
\(b,x^2-y^2-2x-2y=\left(x-y\right)\left(x+y\right)-2\left(x+y\right)\)
\(=\left(x+y\right)\left(x-y-2\right)\)