strike a balance (between something and something)
1
to accept neither of two extreme positions or things but find a solution that is reasonable and fairA balance must be struck between meeting housing needs and preserving the environment.
Synonyms and related words
To successfully deal with a problem or difficulty