完成以下英语语法问题：Which of these sentences is written in the passive voice?
A. Tom hit the ball.
B. The ball was hit by Tom.
C. The ball hit Tom.
Sentence B: "The ball was hit by Tom" is written in the passive voice.