\(Q=x^2+xy-5x-5y=x\left(x+y\right)-5\left(x+y\right)=\left(x+y\right)\left(x-5\right)\)
\(Thay\)\(x=-5;y=-8\)vào biểu thức Q đã rút gọn ta có: \(Q=\left(-5-8\right)\left(-5-5\right)=130\)
\(Q=x.\left(x+y\right)-5.\left(x+y\right)\)
\(Q=-5.\left[-5+\left(-8\right)\right]-5.\left[\left(-5\right)+\left(-8\right)\right]\)
\(Q=-5.\left(-13\right)-5.\left(-13\right)\)
\(Q=-13.\left[-5-5\right]\)
\(Q=130\)