There's a 3 way all in pre-flop. The stacks are 50,000, 25,000 and 10,000. The big and small stacks both have AQ, middle stack has KK. Ace comes on the river (of course!) to knock out the middle stack. How are the middle stack's chips divided?
All three played compete for the first 10000 bet amounts. Two of them tie and split the pot, so each receives half of three times 10000, a win of 15000.
Only two players compete for the next 15000 bet amounts. One wins and takes all of it, so they receive two times 15000, a win of 30000.
Only one player competes for the next 25000 bet amounts. This is immediately awarded (in practise, returned to that player).
As a result, the AQ player who put in 10000 receives 15000. The AQ player who put in 50000 receives 70000. The KK player who put in 25000 receives 0.