From the table shown, the price of the entrance depends on ages. This means that the price is the dependent variable, while the age is the independent variable. The price is a function of the ages
The piecewise function is therefore written below
The graph that represents the piecewise function P(A) is plotted below