40x Escape

Can you escape the mysterious room? Use logic to figure out how to escape the room on each level.