a: Ta có: \(8\left(x-y\right)\left(x+y\right)-\left(y-x\right)\)
\(=8\left(x-y\right)\left(x+y\right)+\left(x-y\right)\)
\(=\left(x-y\right)\left(8x+8y+1\right)\)
b: Ta có: \(5\left(-x-y\right)-\left(x+y\right)^2\)
\(=-5\left(x+y\right)-\left(x+y\right)^2\)
\(=\left(x+y\right)\left(-5-x-y\right)\)