Let x = number of nights stayedLet f(x) = total cost in pesosPiecewise Function[tex] \sf \: f(x) = \begin{cases} \sf5000 & \sf{if \: 1 ≤ x ≤ 3} \\ \sf5000 + 2000(x - 3) & \sf{if \: x > 3}\end{cases}[/tex]ExplanationFor the first 3 nights, fixed ang bayad na ₱5,000Sa 4th night onwards, may dagdag na ₱2,000 per nightGinamit ang (x − 3) dahil yung una mong 3 nights, kasama na sa ₱5,000