Did you try to go into the room with the prisoners?
Maybe you should study the lock first.
Check out the prisoner's book with the scanner.