The formula for calculating the future value of an ordinary annuity (where a series of equal payments are made at the end of each of multiple periods) is:
P = PMT [((1 + r)n - 1) / r]
Where:
P = The future value of the annuity stream to be paid in the future
PMT = The amount of each annuity payment
r = The interest rate
n = The number of periods over which payments are made
in this case
PMT = 2,000
r = .10
N = 40 (for the first question)
You then fill in the amounts, and complete the math.