Three friends organized a ping-pong contest, whereas after each game the winner stayed to play the next game.
The 1st game between A and B was won by A, the last game between A and C was won by C.
Altogether A participated in 24 games, B in 28 and C in 38.