30 is an one-time payment.
The rest cost depends on the number of days (x): 15 · x = 15x
The total cost is a sum of above values, so the answer is y = 30 + 15x.
8.6m questions
11.2m answers