The figure shown is the union of a circle and two semicircles of diameters $a$ and $b$, all of whose centers are collinear. The ratio of the area, of the shaded region to that of the unshaded region is

[###px](https://artofproblemsolving.com/wiki/index.php/File:Problem_16.png)
$\mathrm{(A) \ } \sqrt{\frac ab} \qquad \mathrm{(B) \ }\frac ab \qquad \mathrm{(C) \ } \frac{a^2}{b^2} \qquad \mathrm{(D) \ }\frac{a+b}{2b} \qquad \mathrm{(E) \ } \frac{a^2 + 2ab}{b^2 + 2ab}$
To simplify calculations, double the radius of the large circle from $\frac{a + b}{2}$ to $a + b$.  Each region is similar to the old region, so this should not change the ratio of any areas.
In other words, relabel $a$ and $b$ to $2a$ and $2b$.

The area of the whole circle is $A_{big} = \pi\cdot (a + b)^2$
The area of the white area is about $\frac{A_{big}}{2}$, which is the bottom half of the circle.  However, you need to subtract the little shaded semicircle on the bottom, and add the area of the big unshaded semicircle on top.  Thus, it is actually $A_{white} = \frac{1}{2}\pi\cdot (a+b)^2 - \frac{1}{2}\pi a^2 + \frac{1}{2}\pi b^2$
Factoring gives $A_{white} = \frac{\pi}{2}\cdot (a^2 + 2ab + b^2 - a^2 + b^2)$
Simplfying the inside gives $A_{white} = \frac{\pi}{2}\cdot (2ab + 2b^2)$
$A_{white} = \pi(ab + b^2)$
With similar calculations, or noting the symmetry of the situation, $A_{grey} = \pi(ab + a^2)$
The desired ratio is thus $\frac{ab + a^2}{ab + b^2} = \frac{a(a+b)}{b(a+b)}$, which is option $\boxed{B}$.