In the sentence, the pronoun them has an ambiguous antecedent?

Sam took the dishes off the shelves and washed them with warm water


Which version of the sentence is most clear?

A:Sam washed them with warm water after he took the dishes off the shelves.

B:After Sam took the dishes off the shelves, he washed them with warm water.

C:Sam took the dishes off the shelves and washed the dishes with warm water

D:The dishes were taken off the shelves by Sam, and he washed them with warm water