1 function {(2,2),(4,4),(6,6),(8,8)} written is a function the other following coordinates are not functions due to it not being a straight line as a 'proper' function should be.
As the shoe rental is paid for all the games, it will be added only once. The variable on which the cost will be dependent is g. The number of games will directly affect the cost function. Here g is independent variable.