we know that
A relationship between two variables, x, and y, represent a proportional variation if it can be expressed in the form

Although the problem does not specify it, I will assume a proportional relationship to better explain the problem
In this problem we have
x--------> the number of games played
y-------> the cost of playing golf

therefore
the answer is
the independent quantity is the variable x------> the number of games played
the dependent quantity is the variable y------> the cost of playing golf