1: sam can bring books back this morning. They are borrowed last week
=> sam can bring books back this morning which they are borrowed last week.
2. Mr Nam had sold this house. He lived in it for 10 years
=> Mr Nam had sold this house in which he lived for 10 years.
#NOCOPY - best answer please ~