Check the final answer first, then review the worked steps.
$$\frac{x^2 + 2x - 24}{x - 4} = \frac{(x + 6)(x - 4)}{x - 4} = x + 6$$