\(2x^2-2y^2+10x+10y\)
\(=2\left(x^2-y^2\right)+10\left(x+y\right)\)
\(=2\left(x-y\right)\left(x+y\right)+10\left(x+y\right)\)
\(=2\left(x+y\right)\left(x-y+5\right)\)
\(2x^2-2y^2+10x+10y=\left(2x^2-2y^2\right)+\left(10x+10y\right)=2\left(x^2-y^2\right)+10\left(x+y\right)=2\left(x-y\right)\left(x+y\right)+10\left(x+y\right)=\left(x+y\right)\left[2\left(x-y\right)+10\right]=\left(x+y\right)\left(2x-2y+10\right)=2\left(x+y\right)\left(x-y+5\right)\)