\(\left(x+y\right)^2+3\left(x+y\right)-10=\left[\left(x+y\right)^2+2\left(x+y\right).\dfrac{3}{2}+\dfrac{9}{4}\right]-\dfrac{49}{4}\)
\(=\left(x+y+\dfrac{3}{2}\right)^2-\dfrac{49}{4}=\left(x+y+\dfrac{3}{2}-\dfrac{7}{2}\right)\left(x+y+\dfrac{3}{2}+\dfrac{7}{2}\right)=\left(x+y-2\right)\left(x+y+5\right)\)
\(\left(x+y\right)^2+3\left(x+y\right)-10\)
\(=\left(x+y\right)^2+5\left(x+y\right)-2\left(x+y\right)-10\)
\(=\left(x+y+5\right)\left(x+y-2\right)\)