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.
6.5m questions
8.6m answers