UPSC CSAT 2022 Q30: Minimum Persons in a Queue — Solved

Three persons A, B and C are standing in a queue not necessarily in the same order. There are 4 persons between A and B, and 7 persons between B and C. If there are 11 persons ahead of C and 13 behind A, what could be the minimum number of persons in the queue?

  1. 22
  2. 28
  3. 32
  4. 38

Answer: (a) 22

Solution

  1. Number the queue from the front. A person with k persons ahead stands at position k + 1. If n persons stand between two people, their positions differ by n + 1.
  2. C has 11 persons ahead, so C is at position 11 + 1 = 12.
  3. There are 7 persons between B and C, so B and C are 7 + 1 = 8 places apart. B is at 12 − 8 = 4 or 12 + 8 = 20.
  4. There are 4 persons between A and B, so A and B are 4 + 1 = 5 places apart. A = B − 5 or B + 5.
  5. A has 13 persons behind, so if A is at position p, the total is N = p + 13.
  6. Case 1: B at 4. - A = 4 − 5 = −1. Not possible. - A = 4 + 5 = 9. Then N = 9 + 13 = 22. - Check: C at 12 has 11 ahead and 22 − 12 = 10 behind. Valid. Order from the front: B (4), A (9), C (12).

  7. Case 2: B at 20. - A = 20 − 5 = 15. Then N = 15 + 13 = 28. - A = 20 + 5 = 25. Then N = 25 + 13 = 38. - Both are valid. C at 12 and B at 20 both fit inside 28 or 38.

  8. The possible totals are 22, 28 and 38. 32 never comes up.

  9. The question asks for the minimum, which is 22.

Answer: 22

Option-wise explanation

  • a: correct — With B at position 4 and A at position 9, A has 13 persons behind, so the total is 9 + 13 = 22. This is the smallest of the valid cases.
  • b: incorrect — 28 is a valid total (B at 20, A at 15), but it is not the smallest. This is the trap for anyone who places B behind C and never tries B in front of C.
  • c: incorrect — No arrangement gives 32. For a total of 32, A would have to be at position 19, which is 7 places from C at 12. Neither B = 4 nor B = 20 is exactly 5 places from 19.
  • d: incorrect — 38 is valid (B at 20, A at 25), but it is the largest possible total, not the smallest. You get it by placing every person as far back as possible, which is the opposite of what the question asks.

How to eliminate

Back-solve from the smallest option. C is fixed at position 12. If the total is 22, A is at 22 − 13 = 9. Now find a B that is 5 places from A and 8 places from C: B = 4 works, since 9 − 5 = 4 and 12 − 8 = 4. The smallest option checks out, so mark it and move on. You do not need the other cases. About 45–60 seconds once you turn each "persons between" into a gap of n + 1. Attempt it in the first pass.

Know more

Queue position problems: turn words into positions

Number the queue from the front and convert each clue:

Clue Position
k persons ahead of X X = k + 1
k persons behind X (total N) X = N − k
n persons between X and Y |X − Y| = n + 1
X is k-th from front and m-th from back N = k + m − 1

Method

  1. Fix the person whose position is absolute (counted from the front).
  2. Each "between" clue gives two choices, ahead or behind. List both.
  3. Drop any case that gives a position of 0 or less.
  4. Use the "behind" clue to get N in each case.
  5. For the minimum, pick the smallest N. Check it is at least the position of the last named person.

The usual slip is using n as the gap instead of n + 1. Another is trying only one direction.

Worked variant X has 9 persons ahead, so X is at 10. There are 3 persons between X and Y, so Y = 6 or 14. Y has 8 persons behind.

  • Y = 6 gives N = 6 + 8 = 14. X at 10 fits inside 14, so this is valid.
  • Y = 14 gives N = 14 + 8 = 22.

The minimum is 14 and the maximum is 22.