Actually I believe that the way we're looking at this questions is a bit wrong. The whole idea is that they didn't really pay 24$ each.
If they would have paid 24$ each after getting the money back, it would have to mean that
and it doesn't. The whole point of this question is to trick us into thinking that what they had to pay was actually a number divisble by 3 and it was not.