solving quantities for any given source of food