Answer
ok here is the explanation: Person A put $20 in the box, Person B put $20 in the box. A sold to B for $30. A paid a total of $20 and got $30 back for a $10 profit. Person B paid $20 + $30 for a total of $50 and received $40 back for a loss of $10. Bang. Done.