Two heirs dispute a ruby that cannot be broken. To avoid arguments, the cadi brings each person in separately and asks them how much money that ruby represents to them.
It does not reveal the answers. Then he dictates a sentence: the ruby will go to the person who valued it most, but that person must pay compensation to the other.
If the private valuations are $A$ and $B$, with $A>B$, what compensation makes the distribution equitable?