Let n = the number of years that payments were made.
Assume that the compounding interval is 12 (monthly).
The 1st payment acquires the value

The 2nd payment acquires the value

and so on.
The value of the payments forms a geometric series

The sum of the geometric series is 247014, therefore

Answer: 22 years