give one a run for one’s money

Meaning 1
to compete for money
Sentence 1
That horse will give the crowd a run for it's money.
Meaning 2
to do the best one can in a competitive situation
Sentence 2
We'll give our competitor a run for their money. I think we can make the best computer peripheral.