We simply use the formula A = P(1 + rt) where
A is the accrued amount (the amount gained in total)
P is the principal (starting amount)
r is the interest rate
t is the time period that the money accrued.
So:
A = $500(1 + .08(2))
A = $580
After 2 years, Sophie had $580 in her bank account.