7-13

$${W_g = mgd \cos 180^\circ = mgd(-1) = -mgd}$$