We want to calculate the amount needed as an initial investment to have 120000 after 30 years.
Recall that the formula of annual compounding is given by the formula
[tex]S\text{ =}P\text{ \lparen1+r\rparen}^t[/tex]where P is the principal, r is the interest rate and t is the time in years. When compounded continously the formula is
[tex]S=Pe^{rt}[/tex]where the variables have the same meaning. In both cases we want to find P sucht that
[tex]S=120000[/tex]when t=30 and r is the interest rate that we are given.
So we have the following equation in the first case
[tex]120000=P\text{ \lparen1+}\frac{6}{100})^{30}[/tex]so if we divide both sides by (1+6/100)^30 we get
[tex]P=\frac{120000}{(1+\frac{6}{100})^{30}}\approx20893.22[/tex]so for Plan A 20893.22 is needed to have 120000 after 30 years.
now, we want to do the same with the second plan. We have
[tex]120000=Pe^{\frac{5.8}{100}30}[/tex]so we divide both sides by exp(5.8*30/100). So we get
[tex]P=\frac{120000}{e^{\frac{5.8}{100}\cdot30}}\approx21062.45[/tex]so for Plan B 21062.45 is needed to have 120000 after 30 years