\(\left(x-2\right)\left(x-3\right)-2x\left(1-x\right)\)
\(=x^2-3x-2x+6-2x+2x^2\)
\(=x^2-5x+6-2x+2x^2\)
\(=3x^2-7x+6\)
_______________
\(\left(x+5\right)^2-\left(x+3\right)\left(x-2\right)\)
\(=\left(x^2+10x+25\right)-\left(x^2-2x+3x-6\right)\)
\(=x^2+10x+25-x^2-x+6\)
\(=9x+31\)