The total price, \(P(x)\), is the sum of the fixed entrance fee and the variable cost, which depends on the number of hours, \(x\).
We can write this as an equation:$$ P(x) = (\text{Fixed fee}) + (\text{Cost per hour}) \times (\text{Number of hours}) $$Substituting the values from the problem:$$\begin{aligned}[t]P(x) &= \underbrace{12}_{\text{Fixed fee}} + \underbrace{5 \times x}_{\text{Cost for } x \text{ hours}} \\
&= 12 + 5x\end{aligned}$$Therefore, the formula is \(\boldsymbol{P(x) = 5x + 12}\). This is a linear function with slope \(5\) and y-intercept \(12\).