Forum:Gold Sarcophagus vs Imperial Iron Wall

So let's say I activate Gold Sarcophagus and my opponent chains Imperial Iron Wall on top of it. Since Iron Wall's effect activates first and Gold Sarcophagus is a selection cost, what happens to the selected card?