The cost function is defined as
The value of c(7) can be determined by substituting 7 for n into the function.
Therefore, c(7) becomes;
This means the cost of 7 visits to the gym is $78.
The cost function shows that there is an amount that doesnt change and that is 50. Then there is one that varies or changes with every visit, or n. That means as the value of n increases or decreases, the total amount also increases or decreases. When n equals zero, then the total cost becomes 50. This means when there is no visit to the gym, the cost still remains $50.
Therefore, n is a variable that can determine changes in the total cost.