Compound growth formula is given as:

Where,
- P is the future value after some time
is the initial deposit- r is the annual rate of interest
- n is the number of time compounding happens ( n = 1 for annual compounding, n = 2 for semi-annual compounding, n = 4 for quarterly compounding etc.)
- t is time in years
Given is P = $21,500, r = 6% or 0.06, n = 2 (since semi-annual compounding), and t is 6.
Putting all these into formula and solving for P gives us Sam's balance at end of 6 years.
Sam will have $30,653.86 at end of 6 years in his account.
ANSWER: $30,653.86