Which is an example of a function?

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

B. The time you spend at the library and the distance to the library.

C. The time it takes to drive to the ski resort and the speed drive.

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