At what distance from the earth's surface will a mass of 40.0 kg be just 385.0 in weight?

385=9.81*40.0*altitudefactor

Now the force of gravity is inversely proportional to distance from center, so

altitude factor= (re/(re+h))^2 where re is radius of earth, h is altitude above surface.