If A were not allowed his better position, B would be even worse off than he is.
The fairest rules are those to which everyone would agree if they did not know how much power they would have.
A just society is a society that if you knew everything about it, you'd be willing to enter it in a random place.