выходить из положения в энциклопедиях
to find a way out, to get out of a (tight) spot, to get out of the situation