Statistics for Optimum allocation of water resources under fluctuating prices of food and energy