I freed one of them, and then the second one started running around before I had freed him.
Unlike some other quests, it didn't seem to me that freeing one would free them both, but maybe I missed that.
So anyway, then I went up to the second one who was running around, and I "freed" him according to the menu options while he was running around.
Obviously this quest has some serious problems