Which sentence is written in the active voice?

A)
Fred swam in the deep end of the pool.
B)
The deep end of the pool was swum in by Fred.