Comments

if you are still removing from the removable set in according to element size, then this will also not work.

24, 12, 10, 9, 7

from what I understand, your order of removal: 7, 9, 10, 12, 24

31 + 31 + 30 + 28 + 24

order of removal: 9, 10, 7, 12, 24

31 + 31 + 31 + 28 + 24

Hope the problems are challenging!