A vertical spring of spring constant 24 \mathrm{Nm}^{-1} is fixed on a table. A ball of mass 0.5 kg at a height 2 m above the free upper end of the spring falls vertically on the spring so that the spring is compressed by a distance of 50 cm . The net work done in the process is: