Correct option is B
The idiom
"to take pains" means "to make efforts." It refers to the act of taking care and meticulous effort to ensure that something is done well and thoroughly.
This idiom focuses on the concept of expending effort or going to great lengths to achieve or accomplish something effectively.
Example:
· She
takes pains to make sure all her students understand the material, often spending extra time preparing her lessons.