Position from left + position from right = total + 1. Everything in this topic is that one line.
Ravi is 7th from the left and 12th from the right in a row. How many people are there? 7 + 12 - 1 = 18: Ravi was counted twice.
Ranking questions all come from one identity: position from left + position from right = total + 1.
A person counted from both ends is counted twice, so subtract 1.
Between two people: if A is p-th from the left and B is q-th from the left, there are |p - q| - 1 people between them.
In a class of 40, Priya is 15th from the top. What is her rank from the bottom?
Answer: 26
In a row, A is 10th from the left and B is 15th from the right. If they swap places, A becomes 18th from the left. How many people are in the row?
Answer: 32
Use it when: '15th from the top and 20th from the bottom'.
Total students?
Answer: 34
A is 14th from the left, B is 17th from the right, and there are 5 people between them (A to the left of B). Total?
Answer: 36
A and B swap places. A was 8th from the left and moves to 15th from the left; B was 12th from the right. B's new rank from the right?
Answer: 19
Rita is 12th from the left, Mona 4th from the right. They swap, and Rita is now 15th from the left. How many are in the row?
Answer: 18
6 questions with full solutions.