The height ‘h’ at which the weight of a body will be the same as that of at the same depth ‘h’ from the surface of the earth is (Radius of the earth is R and effect of the rotation of the earth is neglected):
g at height
g at depth
For Weight to be equal
Given d = h