
Robert Z. answered 07/31/18
Tutor
5.0
(1,475)
3965+ hours (& counting!) tutoring math -- Prealgebra to Calculus 2
I think there are 2 reasonable answers:
1) The people who staying in the room on a given night should split the cost evenly. The room goes for $254 per night.
When 5 people are staying, each should pay $254/5 = $50.80. When 3 people are staying, each should pay $254/3 = $84.66 (plus 2/3 of a penny!).
Cost for each of the 3 staying 7 nights would be 5·($50.80) + 2·($84.67) = $423.33 (with proper rounding for the final amount)
Cost for each of the 2 staying 5 nights would be 5·($50.80) = $254.00.
The grand total of these assessments is $1777.99. Somebody will need to kick in an extra penny.
2) Everybody should pay the same per night they stayed, regardless of how many nights that was. One person for one night is 1 person-night. In this scenario there are 31 person-nights. Each person-night costs $1778/31 ≈ $57.35483871
Cost for each of the 3 staying 7 nights would be 7·($57.35483871) = $401.48 (with proper rounding)
Cost for each of the 2 staying 5 nights would be 5·($57.35483871) = $286.77 (with proper rounding)
The grand total of these assessments is $1777.98. Each of the 5-nighters could kick in an extra penny.