move the barrel on the gray platform and the first door will open with the key inside to open the second cell, once everything is done move the barrel back into the cell on the right and the exit will open for you