Since each lady gave $10, which makes $30 total, the waiter only took $5, to make $25 for the total of the bill. Which means he can only take two dollars from two of the $10 and one from the other $10. Which makes one lady paid $9 and the others $8. 9+8+8= 25. The other $2 kind of went has a tip. Thinking as if only two of the ladies gave a $1 tip. Since each lady received a dollar back, then one lady paid $9 for her food, and two ladies paid $8 for their food, and $1 for a tip. 9+8+8+1+1=27. The other three dollars have been distributed equally back to the ladies.