1: \(=5x^2y\left(x-7\right)+5xy\left(x-7\right)\)
\(=5xy\left(x-7\right)\left(x+1\right)\)
2: \(=3ab\left(x-y\right)-3a\left(x-y\right)\)
\(=3a\left(x-y\right)\left(b-1\right)\)
3: \(=4a\left(x-5\right)+2\left(x-5\right)\)
\(=2\left(x-5\right)\left(2a+1\right)\)