[tex]A=wl \Rightarrow
l=\frac{A}{w}[/tex]
l - length, A - area, w - width
[tex]A=x^3-2x-4 \\
w=x-2 \\ \\
l=\frac{x^3-2x-4}{x-2}=\frac{x^3-2x^2+2x^2-4x+2x-4}{x-2}=\frac{x^2(x-2)+2x(x-2)+2(x-2)}{x-2}=\\
=\frac{(x^2+2x+2)(x-2)}{x-2}=x^2+2x+2[/tex]
The answer is D.