Answer:
150x, (x<=3)
225+75x, (x>3)
*x is the number of nights stayed.
Explanation:
-Let the number of days stayed be x.
#If the number of days is equal to or less than 3 days, the cost is:

Hence, the cost for x>3 is given by 150x
#If the number of days is greater than 3, the the cost is calculated as:


We sum the two costs for x>3

Hence, the cost for x>3 is given by 225+75x