In exchange for the American detainees, the U.S. will release five Iranians imprisoned in the U.S. and transfer $6 billion in frozen Iranian money from South Korea to Qatar