Smart thinking can help you find a way out of any tricky situation.