Fundamental logical positioning and orientation.
Basic rank arithmetic.
Solving for overlap and non-overlap cases.
Calculating rank from the opposite end.
Calculating new totals after position swapping.