De oplossing is ruil.
Ruil vormt gevangenenruil, woningruil en uitruil. Het woord past dus in alle drie combinaties.