A complex pact is reached for the eventual return of all 98 captives, Israelis and Americans, living and dead.