to reach an agreement with sb; to find a way of living or working together
come to terms (with sb)
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition