[合「あ」]う => To do A together/mutually N4
Secondary Verb
を[境「さかい」]に => A is set as a border/limit N1
Degree/ Level/Amount