Find the flashlight, look around for a combination number, turn the light switches in the opposite manner. Also, for the second scene, observe the gate and your surroundings very carefully, you'll know what to do