Let $P = the amount that Rose placed into the savings account.
The annual compounding rate is r = 5.13% = 0.0513.
The duration is n = 6 years.
The target amount is A = $24,388.
Use the formula

The value of the account after 6 years is

Therefore,
1.3595P = 24388
P = $17,938.95