To determine the number of years it will take Cody to collect 577 coins, we need to set up an equation.
Let x = the number of years it will take Cody to collect 577 coins.
In x years, Cody will have 22 + 15x coins.
We can set up the equation as follows:
22 + 15x = 577
Subtracting 22 from both sides:
15x = 555
Dividing both sides by 15:
x = 37
Therefore, it will take Cody 37 years to collect 577 coins.