...hit send by accident (and it was already quite long, so I'll start a new post)
I'm not entirely happy with Google's 'come to terms with SOMEONE', because ordinarily you 'come to terms with SOMETHING' (= sad situation).
It is possible to 'come to terms with someone', but it suggests a VERY formal discussion and agreement: 'we sat down and came to terms'. You 'come to terms' in a board meeting or a courtroom, not a simple flatshare!
Here are some suggestions:
...they learned to get on/along with one another
...they learned to live alongside one another
...they managed to adjust to living with one another/with other people
...they managed to adjust to living in a flatshare
...they began to get used to living with one another