During vacation, Jimmy visits different beaches on an island, so he changes his place of lodging from time to time. The first 3 days he stays in a hostel, where he is charged $15 per night. The fourth and fifth days he stays in a cabin where he shares expenses with 2 of his friends, and they are charged $45 total per night. How much did Jimmy spend on lodging?
For the first 3 days, he pays 3 * $15 = $<T>multiply(3, 15)=45
The next 2 days, he and his friends pay $45 * 2 =$<T>multiply(45, 2)=90
Jimmy and his 2 friends pay $90 / 3 = $<T>divide(90, 3)=30.0 each.
In total, Jimmy spent $45 + $30 = $<T>add(45, 30)=75
