Can you find domain?

Algebra Level 3

If the domain of the logarithm $$\log_{-x} ( \sqrt{x^2-5x-24} - x - 2)$$ is $$(-\infty, a]$$, find $$a$$.

×