If you're enjoying this article, consider supporting our award-winning journalism by subscribing . By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today

A family has five cats. They weigh the cats on a scale two at a time in every possible pair. That’s 10 readings. The resulting weights are: 17, 18, 19, 20, 21, 22, 23, 24, 25 and 27 pounds. What do each of the five cats weigh?

The cats weigh 8, 9, 10, 12 and 15 pounds. Label the cats’ weights from lightest to heaviest (allowing for possible ties) as a £ b £ c £ d £ e . Because every pair of cats gets weighed once, each individual cat gets weighed four times. (For example, cat A gets weighed with cats B, C, D and E.) So the sum of all of the readings equals four times the sum of the cats’ weights:

17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 27 = 4 × ( a + b + c + d + e )

The left-hand side sums to 216. Dividing this by 4 yields a + b + c + d + e = 54

The smallest reading, 17, must be the combined weight of the two lightest cats ( a + b ), while the largest reading of 27 must be from the two heaviest cats ( d + e ). Plugging these into our equation gives 17 + c + 27 = 54, suggesting c = 10

The second-smallest reading of 18 must come from cats A and C (any other pair will produce a weight at least as large), while the second-largest