Solution:
The formula for compound interest, including principal sum, is:
[tex]A = p( 1 + \frac{r}{n})^{nt}[/tex]
Where,
A = the future value of the investment/loan
P = the principal investment amount
r = the annual interest rate (decimal)
n = the number of times that interest is compounded per unit t
t = the time the money is invested
From given,
p = 2000
[tex]r = 5.1 \% = \frac{5.1}{100} = 0.051[/tex]
t = 6 years
n = 2 ( compounded semiannually)
Substituting the values we get,
[tex]A = 2000( 1 + \frac{0.051}{2})^{ 2 \times 6}\\\\A = 2000( 1 + 0.0255)^{12}\\\\\A = 2000(1.0255)^{12}\\\\A = 2000 \times 1.35278\\\\A = 2705.5649[/tex]
Thus the total amount after 6 years is $ 2705.5649