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:
![Cost=C_d* Days\\\\=150x](https://img.qammunity.org/2021/formulas/mathematics/high-school/xxhzb0jst0wix4qktxgzhji1i9ayw8fztx.png)
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:
![\#First \ 3 \ Days.\\Cost=C_d* Days\\\\\\=150* 3\\\\=450\\](https://img.qammunity.org/2021/formulas/mathematics/high-school/vuh5m58hkdbd7for37we0am8wc3q270qc1.png)
![\\\#Next \ number \ of \ days\\\\Cost=C_d* Days\\\\=0.5(150)* (x-3)\\\\=75(x-3)](https://img.qammunity.org/2021/formulas/mathematics/high-school/9aopc6l97foj51bmldgin8c0m0hod11k8p.png)
We sum the two costs for x>3
![\sum{Costs}=450+75(x-3)\\\\=225+75x](https://img.qammunity.org/2021/formulas/mathematics/high-school/el3qcczzuj6x5ncv2r53m33scxi28pxqii.png)
Hence, the cost for x>3 is given by 225+75x