idiom
turn the tables
перевернуть ситуацию и получить преимущество
Meaning
to reverse a situation and gain the upper hand
Example
They were losing, but managed to **turn the tables** in the final round.
Они проигрывали, но смогли **перевернуть ситуацию** в последнем раунде.