If each of them stayed 3 nights, the total cost per person is $40/night * 3 nights = $<<40*3=120>>120
Since they were three, the combined cost is $120 + $120 + $120 = $<<120+120+120=360>>360
#### 360