\(3x^2\left(a-b+c\right)+36xy\left(a-b+c\right)+108y^2\left(a-b+c\right)\)
\(=\left(a-b+c\right)\left(3x^2+36xy+108y^2\right)\)
\(=3\left(a-b+c\right)\left(x^2+12xy+36y^2\right)\)
\(=3\left(a-b+c\right)\left(x+6y\right)^2\)
___________________
\(x^2-2xy+y^2-4m^2+4mn-n^2\)
\(=\left(x^2-2xy+y^2\right)-\left(4m^2-4mn+n^2\right)\)
\(=\left(x-y\right)^2-\left(2m-n\right)^2\)
\(=\left(x-y-2m+n\right)\left(x-y+2m-n\right)\)