I want to convert this sentence into passive voice:
Students of our school cast their votes to elect the school captain.
Now, this has two options:
A) Votes are cast by the students of our school to elect the captain
B)To elect our school captain votes are cast by the students.
According to the book, (B) is correct. HOW??