The method is described clearly in section 5.10.2. Releasing from prison is a different method.
Releasing from prison is a different way to obtain a hero, not to grant an expert skill to a hero.
Regarding whether it is possible to use a level 30 Isra/Vido from the dungeon (since they have all skills maxed out), this needs to be included in the rules.