If the change in the value of 'g' at a height h above the surface of the earth is the same as at a depth x below it, then (both x and h being much smaller than the radius of the earth)
From the expressions for the variation of gravity with respect to height and depth