Answer
$\dfrac{x + 4}{x - 6}$
Restriction: $x \ne 6, -4$.
Work Step by Step
To solve these types of problems, we want to remove greatest common factors in both the numerator and denominator. Let us first try to factor the numerator and denominator:
$x^2 + 8x + 16$ can be factored to $(x + 4)(x + 4)$
$x^2 - 2x - 24$ can be factored to $(x - 6)(x + 4)$
Let's plug in the factors back into the expression:
$\dfrac{(x + 4)(x + 4)}{(x - 6)(x + 4)}$
We can factor out $x + 4$ from the numerator and denominator to get:
$\dfrac{x + 4}{x - 6}$
To see what restrictions for the variable we have, we need to see which values for the variable will make the denominator equal to $0$, which will cause the fraction to become undefined. Let's set the denominator equal to $0$ to see which values for the variable we cannot use:
$(x - 6)(x + 4) = 0$
Set each factor each to $0$:
First factor:
$x - 6 = 0$
Add $6$ to each side of the equation:
$x = 6$
Second factor:
$x + 4 = 0$
Subtract $4$ from both sides of the equation to isolate the $x$ term:
$x = -4$
Restriction: $x \ne 6, -4$.