A hotel is planning to offer a group rate for groups (weddings, conferences, etc.) that rent over 5 rooms. The normal rate is $179 per room, but for every room rented over 5 rooms, the rate reduces by $5 per room. (So, for example, 6 rooms would cost $174 per room, 7 rooms would cost $169 per room, etc.)

Type a piecewise function that models the revenue received by the hotel (revenue is number of rooms times cost per room) for renting between 0 and 30 rooms. Use R for the revenue and n for the number of rooms rented.