a. He gave the boy an apple.
→ The boy was given an apple.
(或An apple was given to the boy.)
b. Her father bought her a present.
→ She was bought a present by her father.
(或A present was bought for her by her father.)