- Foundation
- About 13 min
- 5 practice questions
Adding and removing people: how positions and totals change
Predict a person's new position from the front and from the back when people join or leave a queue or a class list, without redrawing the whole line.
If something looks wrong, please tell us.
So far the line has stayed the same. In many questions, though, people join the queue, leave it, or move to another place. The skill is to decide, for each person, whether the change happened in front of them or behind them. Only changes in front of a person alter that person's position from the front, and only changes behind a person alter the position from the back.
The four rules
| What happens | Total | Position from the front | Position from the back |
|---|---|---|---|
| k people join at the front | + k | + k | No change |
| k people join at the back | + k | No change | + k |
| k people in front of the person leave | - k | - k | No change |
| k people behind the person leave | - k | No change | - k |
The same rules hold for ranks from the top and from the bottom of a class list. 'In front' means above the person and 'behind' means below. People who join or leave between two named persons change the number of people between them, and the position of the one further along.
Only people in front change my position from the front. Only people behind change my position from the back. The total always changes.
Worked examples
Example 1. There are 38 people in a queue and Ravi is 14th from the front. 5 more people join at the front. Ravi's new position from the front is 14 + 5 = 19th. The total becomes 43, so his position from the back is 43 - 19 + 1 = 25. This is the same as before the change, since 38 - 14 + 1 = 25. The people who joined are in front of Ravi, so his position from the back does not change.
Example 2. In a class of 40, Seema is 12th from the top. Three students who rank above her leave the school. Her new rank from the top is 12 - 3 = 9th. The class now has 37 students, and her rank from the bottom is 37 - 9 + 1 = 29th, the same as the old value, 40 - 12 + 1 = 29.
Example 3. Tara is 8th from the left and 15th from the right in a row. The total is 8 + 15 - 1 = 22. Three people join at the right end. Tara's position from the left is still 8th. The total is 25 and her position from the right is 25 - 8 + 1 = 18th, which is 15 + 3.
Example 4. P is 6th from the left and Q is 14th from the left. Two people join between them. Q is now 14 + 2 = 16th from the left. The people between them were 14 - 6 - 1 = 7 and are now 16 - 6 - 1 = 9.
A check you can always do
After any change, recompute the total and make sure that the position from the front plus the position from the back, less 1, equals the new total. In Example 1 the check is 19 + 25 - 1 = 43. If it does not match, one of the two positions was changed wrongly.
Key takeaways. Decide whether the change is in front of or behind the person. Update the total. A person's position from the other end is the new total minus their position plus 1. Use the check: front + back - 1 equals the total.
Check your understanding
-
1. There are 30 people in a queue and Kabir is 12th from the front. 4 people join at the front. What is Kabir's new position from the front?
- 16th
- 12th
- 14th
- 18th
Show answer
Answer: A. The new people are in front of Kabir, so his position becomes 12 + 4 = 16th.
-
2. In a class of 45, Neha is 10th from the top. 3 students who rank above her leave. What is her rank from the bottom?
- 33rd
- 35th
- 36th
- 39th
Show answer
Answer: C. Her rank from the bottom does not change because the leavers were above her: 45 - 10 + 1 = 36th.
-
3. In a row, Anil is 9th from the left and 11th from the right. 5 people join at the left end. What is Anil's position from the left?
- 9th
- 11th
- 16th
- 14th
Show answer
Answer: D. The new people are on his left, so his position from the left is 9 + 5 = 14th.
-
4. In a row of 20, P is 5th from the left and Q is 15th from the left. 3 people join between them. How many people are now between P and Q?
- 9
- 10
- 12
- 14
Show answer
Answer: C. Before: 15 - 5 - 1 = 9 between. Three people join between them, so there are 9 + 3 = 12.
-
5. A queue of 25 has Dev at 10th from the back. 6 people behind Dev leave. What is Dev's new position from the back?
- 4th
- 10th
- 16th
- 6th
Show answer
Answer: A. The leavers were behind Dev, so his position from the back is 10 - 6 = 4th.
Sign in to keep track of the lessons you finish.