How do you find the quotient of (k^2-5k-24)div(k-8)?

Quotient is $\left(k + 3\right)$
$\frac{{k}^{2} - 5 k - 24}{k - 8} \mathmr{and} \frac{{k}^{2} - 8 k + 3 k - 24}{k - 8} \mathmr{and} \frac{k \left(k - 8\right) + 3 \left(k - 8\right)}{k - 8} \mathmr{and} \frac{\cancel{\left(k - 8\right)} \left(k + 3\right)}{\cancel{\left(k - 8\right)}} = \left(k + 3\right)$ [Ans]