How does the sentence end?

Derrick was angry at Logan when he learned that (

- Derrick ) was the one who did the prank on him..
- Logan ) was the one who did the prank on him..
Logan ) was the one who did the prank on him.