an amusement park is running a special where you pay an entrance fee of $13 and will only charge $1 for the first 5 rides. After 5 rides, the price goes up to $4 per ride.

a. Write a function that represents the total cost of a trip to this amusement park

b. How much money will be spent if you go on 7 rides?

c. How many rides did someone go on who ended up spending $46?