1) \(x^2\left(a-b\right)m-2xy\left(a-b\right)+ay^2-by^2=\left(a-b\right)x^2m-\left(a-b\right)2xy+\left(a-b\right)y^2=\left(a-b\right)\left(x^2m-2xy+y^2\right)\)
2) \(10a^3-10a=10a\left(a^2-1\right)=10a\left(a+1\right)\left(a-1\right)\)
3) \(16a^3xy-54b^3xy^4=2xy\left(8a^3-27b^3y^3\right)=2xy\left(2a-3by\right)\left(4a^2+6aby+9b^2y^2\right)\)
4) \(16+2x^3y^3=2\left(8+x^3y^3\right)=2\left(2+xy\right)\left(4+2xy+x^2y^2\right)\)
5) \(\left(a+b\right)^3+c^3=\left(a+b+c\right)\left(\left(a+b\right)^2+\left(a+b\right)c+c^2\right)=\left(a+b+c\right)\left(a^2+2ab+b^2+ac+bc+c^2\right)\)