Using a linear function, the costs are given as follows:
What is a linear function?
A linear function is modeled by:
y = mx + b
In which:
- m is the slope, which is the rate of change, that is, by how much y changes when x changes by 1.
- b is the y-intercept, which is the value of y when x = 0, and can also be interpreted as the initial value of the function.
For this problem, we have that:
- The admission fee is the intercept.
- The cost per ride is the slope.
Hence the cost for r rides is given by the following linear function:
C(r) = 15 + 4r.
The cost for 7 rides is given by:
C(7) = 15 + 4(7) = 15 + 28 = $43.
More can be learned about linear functions at https://brainly.com/question/24808124
#SPJ1