Practice30Create account

Five shops stand along a straight road at the 2 km, 5 km, 9 km, 10 km and 24 km marks. A courier hub is to be built somewhere on this road so that the TOTAL of its distances to the five shops is as small as possible. At which mark should it be built?

Competition practiceData & Probability
  • A6.5 km
  • B9 km
  • C13 km
  • D10 km

Step-by-Step Solution

The total distance to a set of points on a line is least at their MEDIAN, and the median of 2, 5, 9, 10, 24 is the middle value 9. Checking confirms it: from 9 the total is 7 + 4 + 0 + 1 + 15 = 27 km, from 10 it is 8 + 5 + 1 + 0 + 14 = 28 km, from 13 it is 11 + 8 + 4 + 3 + 11 = 37 km and from 6.5 it is 4.5 + 1.5 + 2.5 + 3.5 + 17.5 = 29.5 km. The tempting wrong answer is 10 km, the MEAN of the five marks — but the mean is the point that minimises the sum of SQUARED distances, not the sum of distances, and the far shop at 24 km drags it away from where the shops actually cluster. The 13 km mark is halfway between the first and last shop, which ignores the four shops bunched at the near end, and 6.5 km is the mean of the four near shops with the distant one left out.
Answer: B) 9 km

Master this topic in 30 minutes a day.

Don't just memorise the answer — build a daily practice habit.

Practice 5 Similar Questions Free →

All Data & Probability practice questions

More Data & Probability practice

Each of the digits 2, 3, 5 and 7 is used exactly once to build a four-digit number, and…A survey records the ages of 300 people only as a grouped frequency table with the…Two events A and B are independent. Given that P(A) = 0.3 and P(A or B) = 0.65, find P(B).A share bought for ₹200 rose by 100 percent during the first year and then fell by 50…An office has 4 people in the Sales department, 3 in Accounts and 2 in Despatch. Three…