Which is an example of a function?

the time you spend at the library and the distance to the library

the price of a one-year magazine subscription and the age of the subscriber

the cost of a small dish of ice cream at an ice cream parlor and the height of the customer

the time it takes to drive to the ski resort and the speed you drive

The time it takes to drive to the ski resort and the speed you drive