A body of mass $m$ is dropped from a height $h$ on a sand floor. If the body penetrates $x \mathrm{~m}$ into the sand, the average resistance offered by the sand to the body is
(A) $m g\left(\frac{h}{x}\right)$
(B) $m g\left(1+\frac{h}{x}\right)$
(C) $m g h+m g x$
(D) $m g\left(1-\frac{h}{x}\right)$