expression
necessity is the mother of invention; there's always a way if you look for it
Proverb meaning that when one is in a tight spot, a solution will present itself if one searches earnestly.
お金がなくて困っていたが、窮すれば通ずで、友達が仕事を紹介してくれた。
I was in trouble without money, but necessity is the mother of invention—a friend introduced me to a job.
締め切りが迫っていたが、窮すれば通ずで、なんとかアイデアが浮かんだ。
The deadline was approaching, but there's always a way if you look for it—I somehow came up with an idea.