a) \(3x^2-6xy+3y^2-12z^2\)
\(=3\left(x^2-2xy+y^2-4z^2\right)\)
\(=3\left[\left(x-y\right)^2-\left(2z\right)^2\right]\)
\(=3\left(x-y-2z\right)\left(x-y+2z\right)\)
b) \(x^2-25+y^2+2xy\)
\(=\left(x^2+2xy+y^2\right)-25\)
\(=\left(x+y\right)^2-5^2\)
\(=\left(x+y+5\right)\left(x+y-5\right)\)