Not quite,
Originally they paid 30, 10 each. When they got the 5 back it reduced each of their payment to 8.333. Each of them taking one dollar back from the 5, accounts for 9.33 each and the final two dollars is the difference between (3*9.333) or 28, and 30. That's where the two dollars is.