a) \(5x^3-5x^2y-10x^2+10xy\)
\(=\left(5x^3-10x^2\right)-\left(5x^2y-10xy\right)\)
\(=5x^2\left(x-2\right)-5xy\left(x-2\right)\)
\(=\left(x-2\right)\left(5x^2-5xy\right)\)
\(=5x\left(x-2\right)\left(x-y\right)\)
b) \(2x^2-7xy+5y^2\)
\(=2x^2-2xy-5xy+5y^2\)
\(=2x\left(x-y\right)-5y\left(x-y\right)\)
\(=\left(x-y\right)\left(2x-5y\right)\)