Annuties and sinking funds

I have the following problem and am having a difficult time setting up the formula for it. can someone please advise me on this?

Joe is able to deposit $1000 at the end of each yr for the next 5 yrs @ 8% compounded annually, $1500 at the end of yrs 6-10 @ 8% compounded annually, and $2000 @ at the end of yrs 11-35 @ 5% compounded annually. how much would accumulate at the end of 35 yrs? assume that any balances from earlier depositing periods would continue to earn the same rate of annual interest.

This problem requires the use of tables for future value of annuities which I have.

Any help would be much appreciated

thanks