To gain an advantage / To take advantage
Describes gaining a competitive edge or benefiting from a situation. Sacar ventaja de algo = to take advantage of something.
He tried to take advantage of the confusion.
With her experience, she gained an advantage in the negotiation.
—Why did they win? —They knew how to take advantage of their strengths.