相互琢磨
[xiāng hù zhuó mó]
In this context, it means getting along by figuring each other out. A more literal translation would be trying to understand and tolerate each other or to spend time considering and appreciating someone or a situation, leading to a deeper connection and compatibility between people.