Alex left the torch in Remy's hands so that he could unlock the gate. Given the context: Why did Alex do this? Possible answers: hit Remy, run away, open a gate
The answer to this question is:
open a gate