You have only a finite capacity for storing goods. Assuming all goods are equally valuable to trade (buy and sell later), what strategy should you apply to maximize your expected profit? Assume that each of the three states is equally likely.
What about a more general solution? What if the value of the goods differs, so that trading 100 A's is worth 5x as much as trading 100 B's? What if the distribution of states is uneven?