which sentence is written in the passive voice?

a. Marta was given a note by the teacher to take home to her parents.
b. the teacher gave Marta a note to take home to her parents.