Let the number of time he attend the park be represented with n.
So that,
C = 45 + 7n ....eqn(1)
C = 12n ..........eqn(2)
Equating both equations, we have,

He has to attend the park 9 times before he can pay exactly the same amount.
So, the correct answer is 9.