\(=3\left(x^2-y^2\right)-12\left(x-y\right)=3\left(x-y\right)\left(x+y\right)-12\left(x-y\right)=3\left(x-y\right)\left(x+y-4\right)\)
\(3x^2-3y^2-12x+12y\)
\(=3\left(x^2-y^2\right)-12\left(x-y\right)\)
\(=3\left(x-y\right)\left(x+y\right)-12\left(x-y\right)\)
\(=\left(x-y\right)\left[3\left(x+y\right)-12\right]\)
\(=\left(x-y\right)\left(3x+3y-12\right)\)
\(=3\left(x-y\right)\left(x+y-4\right)\)