\(a,=5\left(x^2+2xy+y^2\right)-10y^2+5=5\left(x+y\right)^2-10y^2+5\\ =5\left(1+2\right)^2-10\cdot4+5=45-40+5=10\\ b,=7\left(x-y\right)-\left(x-y\right)^2=\left(x-y\right)\left(7-x+y\right)\\ =\left(2-2\right)\left(7-2+2\right)=0\)
b: \(=7\left(x-y\right)-\left(x-y\right)^2\)
\(=\left(x-y\right)\left(7-x+y\right)=0\)