Complex sentence: Bilbo stalls the trolls from eating them until dawn, when Gandalf exposes the trolls to sunlight, which turns them to stone.
Split into simpler sentences: Bilbo stalls the trolls from eating them until dawn. When Gandalf exposes the trolls to sunlight, it turns them to stone.