way out
Definitions
An exit or a means of leaving a place.
A solution to a difficult situation or problem.
Examples
The hikers finally found a way out of the dense forest before sunset.
He was looking for a way out of his stressful job to pursue his passion for painting.
There is no easy way out of this complicated legal situation.