it cost him/her
A Tom le costó encontrar trabajo.
Tom had a hard time finding a job.
Le costó seguirle el ritmo a sus compañeros de clase.
He struggled to keep up with his classmates.
That cost him his job.
No le costó resolver el problema.
It wasn't hard for him to solve the problem.
No sé cuánto le costó la reforma de la casa.
I don't know how much the house renovation cost him/her.
A mi mamá le costó mucho lidiar con eso.
My mom had a really hard time dealing with it.
— Familia (2023)
El accidente casi le costó la vida.
The accident almost cost him his life.