(b) Gravitational force due to solid sphere, $F_{1} = \frac{GM\ m}{(2R)^{2}},$
where $M$ and $m$ are mass of the solid sphere and particle respectively and $R$ is the radius of the sphere. The gravitational force on particle due to sphere with cavity = force due to solid sphere creating cavity, assumed to be present above at that position
$ie,\ F_{2} = \frac{GM\ m}{4R^{2}} - \frac{G(M/8)m}{(3R/2)^{2}} = \frac{7}{36}\frac{GM\ m}{R^{2}}$
So, $\frac{F_{2}}{F_{1}} = \frac{7GM\ m}{36R^{2}}/\left( \frac{GM\ m}{4R^{2}} \right) = \frac{7}{9}$