Ranking questions count positions in a row or class.
1Formulas
Total = position from left + position from right − 1
Rank from bottom = total − rank from top + 1
People between two persons = total − (left position of one) − (right position of the other), when they do not overlap