Question

$$\frac{ { \left(x+2 \right) }^{ 2 } -9 }{ x-1 } \times (x-5)=-24$$