ExamShortcut

Order & Ranking

🔒 Log in to track
medium importance~1-2 Q in Tier 13 formulas⚡ 4 shortcuts4 subtopics

People between two positions

🔒 Log in to track

Three standard shapes:

  1. Both from the same end: between = |a − b| − 1.
  2. From opposite ends: convert one rank first (position from the other end = n + 1 − p), then subtract.
  3. Overlapping ranks: A is 10th from the left, B is 25th from the left, in a row of 20 — impossible unless ranks overlap; the between-count formula still works after conversion, but the exam usually avoids true contradictions.

For the 'middle person' variant (odd gap), the middle position between ranks a and b (same end) is (a + b) ÷ 2 — it must come out as a whole number; if it does not, the question intends 'two middle people' and asks something else.

Detailed notes

Counting between two people

Four shapes cover every 'how many between' question. Know which end each rank comes from — that decides the formula.

Shape 1 — both ranks from the same end. A is a-th and B is b-th from the left:

between=∣a−b∣−1\text{between} = |a - b| - 1

The gap shrinks by one because 'between' excludes both people. Example: 9th and 26th from the top → 16 between.

Shape 2 — ranks from opposite ends. Convert one rank to the shared end first, or use the total. In a row of T with P a-th from the left and Q b-th from the right:

between=T−a−b\text{between} = T - a - b

Example: row of 45, X 14th from the left, Y 18th from the right → 45−14−18=1345 - 14 - 18 = 13. If the total is not given, build it with a+b−1a + b - 1 from any person who has both ranks.

Shape 3 — the middle person. Both from the same end a and b: the midpoint rank is (a+b)/2(a + b) / 2 from that end. 9th and 21st from the left → the middle person is 15th from the left. If a + b is odd, the exact middle is a half-position — exams phrase those as 'immediately between', and the two neighbours are (a+b−1)/2(a+b-1)/2 and (a+b+1)/2(a+b+1)/2.

Shape 4 — the overlap deduction. The classic: 'Ram is 17th from the left, Shyam 9th from the right; after interchanging, Ram is 22nd from the left.' Ram takes Shyam's seat, keeping Shyam's from-right rank (9): total =22+9−1=30= 22 + 9 - 1 = 30. Then Shyam's old seat was 30−9+1=2230 - 9 + 1 = 22nd from the left, and the original gap is 22−17−1=422 - 17 - 1 = 4. Overlap questions always split into: build the total first, then run a plain Shape 1 or 2 count.

Sanity checks. Between-counts can never be negative — a negative answer means the two ranks described the same person or the ranks were from ends you did not account for. And between + 2 ≤ total: the two people themselves exist too.

Quick revision

  • Same end: ∣a−b∣−1|a-b| - 1. Opposite ends (total T): T−a−bT - a - b.
  • Middle person (same end): (a+b)/2(a+b)/2 from that end.
  • Overlap puzzles: recover T first (a′+b′−1a' + b' - 1), then count between.
  • Convert every rank to the same end before subtracting; 'between' excludes both people.
  • Negative gap = misread ends; stop and re-convert.

A worked flow for exam speed. Read the question once, labelling each rank with its end (L/R or T/B) and circling the total if present. Then one line of arithmetic:

  • same end → subtract, drop 2 (|a−b| − 1);
  • opposite ends → subtract from the total;
  • no total → build it from any both-ends person (a + b − 1). Under exam pressure the labelling step is what prevents the classic error of subtracting ranks that came from different ends.

Between-counts with a twist. Questions sometimes ask 'how many people do NOT lie between them' (= total − between − 2) or 'what fraction of the row lies between'. Both are one extra subtraction on the between-count — compute between first, always, then answer the actual question.

Types of questions asked

Every way this subtopic shows up in exams — how to recognise it, the formula or logic to use, and a solved example.

Type 1: Between, same endvery common3 practice Q
How to spot it:

Both ranks measured from the same end (top, left, front).

  1. Between = |a − b| − 1.
  2. 'Between' excludes both named people.
  3. Absolute value: either rank may be bigger.

Why it works: the gap between two positions minus the two endpoints.

Example: R ranks 9th from the top and S ranks 26th from the top. How many students are between them?

∣26−9∣−1|26 - 9| - 1 = 16.

Type 2: Between, opposite endsvery common2 practice Q
How to spot it:

One rank from the left/top, the other from the right/bottom, total known.

  1. Between = total − rank1 − rank2.
  2. If no total is given, build one from a both-ends person first.
  3. Negative result = you misread the ends.

Why it works: subtract both people and the ends from the row.

Example: In a row of 45, X is 14th from the left and Y is 18th from the right. How many people are between them?

45−14−1845 - 14 - 18 = 13.

Type 3: Middle person between two rankscommon2 practice Q
How to spot it:

'Who/which position is exactly in the middle of A and B?'

  1. Convert both ranks to the same end.
  2. Middle position = (a + b) / 2 from that end.
  3. Odd sum → the two immediate neighbours share the middle; read the options.

Why it works: the midpoint of two positions is their average.

Example: A is 9th from the left and B is 21st from the left. Which position is exactly in the middle?

(9+21)/2(9 + 21)/2 = 15th from the left.

Type 4: Overlap: swap reveals the totalcommon2 practice Q
How to spot it:

A swap or second measurement exposes a rank the row never stated; count between in the original line.

  1. The swapped person keeps the partner's from-end rank: total = new rank + partner's rank − 1.
  2. Convert everyone to one end.
  3. Between = |a − b| − 1 as usual.

Why it works: the swap pins a second measurement to the same seat, fixing the row size.

Example: Ram is 17th from the left, Shyam 9th from the right. After interchanging, Ram is 22nd from the left. How many students sat between them originally?

Total =22+9−1=30= 22 + 9 - 1 = 30. Shyam's old seat = 30−9+1=2230 - 9 + 1 = 22nd from the left. Between = 22−17−122 - 17 - 1 = 4.

Shortcut tricks

⚡ Convert, then count

Never subtract ranks from different ends. Convert one with n + 1 − p, then |a − b| − 1.

Example: Q. Row of 30: A is 10th from the left, B is 12th from the right. How many sit between?

Sol. B from the left = 30 + 1 − 12 = 19th. Between = 19 − 10 − 1 = 8.

One conversion, one subtraction, one final −1.

Where students lose marks

  • Subtracting a left-rank from a right-rank directly.

  • Dropping the final −1 (counting the endpoints themselves).

  • Using n + 1 − p twice, converting both ranks.

Practice sets — 12 questions

Sets of 10, mixed across the question types above. Each answer comes with a step-by-step explanation.

Topic test · 12 questions

Suggested time 9 min · wrong answers go to your mistake notebook automatically.