\(=\left[\left(x+2\right)\left(x+5\right)\right]\left[\left(x+3\right)\left(x+4\right)\right]-24\)
\(=\left(x^2+7x+10\right)\left(x^2+7x+15\right)-24\)
\(=a\left(a+5\right)-24;a=x^2+7x+10\)
\(=a^2+5a-24=\left(a+8\right)\left(a-3\right)\)
\(=\left(x^2+7x+18\right)\left(x^2+7x+7\right)\)