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