Answer:
150x, (x<=3)
225+75x, (x>3)
*x is the number of nights stayed.
Step-by-step 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:
[tex]Cost=C_d\times Days\\\\=150x[/tex]
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:
[tex]\#First \ 3 \ Days.\\Cost=C_d\times Days\\\\\\=150\times 3\\\\=450\\[/tex]
[tex]\\\#Next \ number \ of \ days\\\\Cost=C_d\times Days\\\\=0.5(150)\times (x-3)\\\\=75(x-3)[/tex]
We sum the two costs for x>3
[tex]\sum{Costs}=450+75(x-3)\\\\=225+75x[/tex]
Hence, the cost for x>3 is given by 225+75x