$$\textbf{Hint}$$: Apply the formula of acceleration due to gravity above and below the earth surface.
$$\textbf{Step 1}$$:
We know acceleration due to gravity on the earth's surface is given by $$g=\dfrac{GM}{R^2}$$ where $$G$$ is gravitational constant, $$R$$ is the radius of the earth and $$M$$ is the mass of the earth.
Given that the change in value of $$g$$ at a height $$h$$ above the surface of the earth is the same as at a depth $$x$$ below it.
$$g \propto \dfrac{1}{R^2}$$
$$g_h \propto \dfrac{1}{(R+h)^2}$$
$$\dfrac{g_h}{g}=\dfrac{R^2}{(R+h)^2}$$
$$ \implies \dfrac{g_h}{g}=\dfrac{1}{(1+\dfrac{h}{R})^2}$$
$$\implies \dfrac{g_h}{g}=(1-\dfrac{2h}{R})$$
$$\implies g_h=g- \dfrac{2gh}{R}$$
$$ \implies g-g_h=\dfrac{2gh}{R}$$
$$\textbf{Step 2}$$:
The acceleration due to gravity at depth $$x$$ is given by
$$g_x=\dfrac{4}{3}G_p(R-x)$$
So, $$g_x \propto (R-x)$$
$$\dfrac{g_x}{g}=\dfrac{R-x}{R}$$
$$\dfrac{g_x}{g}=1-\dfrac{x}{R}$$
$$g-g_x=\dfrac{gx}{R}$$
Given that the change in value of $$g$$ at a height $$h$$ above the
surface of the earth is the same as at a depth $$x$$ below it.
$$g-g_h=g-g_x$$
$$\dfrac{2gh}{R}=\dfrac{gx}{R}$$
$$x=2h$$
Thus option B is correct