Some books were given to us by them.
We were given some books by them.
They were given us some books
A or B