The prince sets the prisoner free. The latter becomes his servant and helper. The youth wins the princess. (For the whole tale cf. Type 314.)