It would be better to eliminate using the options.
Each set of remaining mangoes is 2/3 of the total after 1 mango has been eaten = 2/3 * (x - 1) (as 1/3rd is stolen after 1 is eaten)
Each of these remaining lots has to be divisible by 3.
Option A = 16 mangoes.
After the 1st boy, the remaining = 2/3 (16 - 1) = 10
After the 2nd boy, the remaining = 2/3 (10 - 1) = 6
After the 3rd boy, the remaining = 2/3 (6 - 1) = 2/3 * 5 which is a fraction.
Option B: After the 1st boy eats, we get the remaining as 2/3 * 16, which is a fraction, so this is not possible.
Option C: After the 1st Boy, we get 2/3 * 18 = 12, and after the 2nd boy, we get 2/3 * 11 which is a fraction.
Option D: After the 1st boy, we get 2/3 * 24 = 16, after the 2nd boy, we get 2/3 * 15 = 10 and after the 3rd boy, we get 2/3 * 9 = 6 and 6 is divisible by 3.
Option E: After the 1st boy, we get 2/3 * 30 = 20, after the 2nd boy, we get 2/3 * 19 which is a fraction.
Option DArun Kumar