idiom
think on one's feet
Meaning
to be able to make quick decisions and act quickly, especially in an emergency
Example
During the meeting, she had to **think on her feet** and come up with a solution.