They must work out how much to invest, and how best to distribute the goods