Answer
$\frac{x}{2x+8}$ (Ratio = $x:2x+8$ )
Work Step by Step
Area of triangle = $\frac{1}{2}(x)(x)$
Area of rectangle = $x(x+8)$
Ratio of area of shaded triangle to rectangle
$=\frac{1}{2}x^{2}\div (x^{2}+8x)$
$=\frac{x^{2}}{2(x^{2}+8x)}$
Factoring the denominator, and cancelling top and bottom,
$\frac{x^{2}}{x(2x+8)}$
$=\frac{x}{2x+8}$
$x\ne0$ as the length cannot be 0.
Ratio of area of the shaded triangle to the rectangle is:
= $x:2x+8$