Answer:
Dandy Co.
Explanation:
Both companies traded inventories without making a profit out of it. Since Candy Co. paid some extra money to Dandy because Dandy's inventory was more valuable, only Dandy should be able to recognize a gain from this transaction, if some gain existed. Remember that the trade was supposedly done without making profit, then the money should have only compensated Dandy, not generated a gain.