There were 3 persons A,B and C.
A had 3 Pizzas and B had 5 Pizzas.
They decided to eat equally and after they finished C offered 8 bucks to them. A and B started fight over the distribution of money.
A said that all of us eat equally so we should divide equally 4 each
B said as he had 5 pizzas, so he should get 5.
How they should divide the money?
I assume that C also ate pizza and his 8 bucks is what he thinks his share is worth.
They all ate the same amount: 8/3 pizzas.
C pays 8 bucks for his share, so 1/3 pizza is worth 1 buck
B had 5 pizzas to start with = 15/3. He ate 8/3 so he should get the value of 7/3 = 7 bucks
A had 3 pizzas = 9/3 , of which he ate 8/3 so he should get the value of 1/3 = 1 buck