You are exploring a dungeon and come across a treasure vault. There are three chests inside. One is labeled "gold", one is labeled "magic swords" and one is labeled "gold and magic swords".
There is a ghost guarding it. It explains that the boxes are all mislabeled. One does indeed contain gold, one swords, and one both, but none of them contain what they say.
You are allowed to pick one and only one item from a chest, blindly, (meaning if you pull from the one with both swords and gold, you'll get either a sword or some gold, but not both nor will you know it contained both). You must then guess what the other chests contain. If you do so, you can keep all the loot. If you fail, the ghost will attack. Since you're second level and this is AD&D, that would be bad.
How do you get all the loot?