An Exercise on the optimal use of groundwater resources