At a car repair shop, the cost of repair depends on the time the mechanic works. Which of the following shows this idea in function notation?

Pleas show all work.

A. number of cars (time)

B. time(cost)

C. time(number of cars)

D. cost(time)