Bonnie invests a sum of money for 3 years at an interest rate of 4.5%, gaining $9.45 in interest. What was the total sum of money invested by Bonnie?