Hotel gave $5 back. Meaning the men have paid $25.
Bellboy gives $3 back to men and keeps $2. $25 + $3 + $2 = $30.
The men have paid $25 to the hotel and $2 to the bellboy. Or, they have paid a total of $27 to both combined