The compound interest formula for the amount of money A in an account after t years if a principal P is invested at an annual interest rate r (written as a decimal) which is compounded n times a year, is:
[tex]A=P(1+\frac{r}{n})^{nt}[/tex]In this case, the interest rate of 3.4% (0.034), the amount after 13 years, $24,155.71 and the number of compounding periods a year, 2, are given. The principal P is unknown.
Then, isolate P from the equation:
[tex]P=\frac{A}{(1+\frac{r}{n})^{nt}}=A(1+\frac{r}{n})^{-nt}[/tex]Replace A=24,155.71, r=0.034, n=2 and t=13 to find the principal P that Sophie deposited at the beginning:
[tex]\begin{gathered} P=24155.71\times(1+\frac{0.034}{2})^{-2\times13} \\ =15,583.85975... \\ \approx15,584 \end{gathered}[/tex]Therefore, to the nearest whole number, the amount that Sophie deposited was $15,584.