Hi Gemini:
You titled your post "Calculating Compounding Interest". Should we assume that the interest is compounded, with the 3-year fixed-rate investment? If so, then should we assume that the compounding period is once-per-year? Perhaps, the interest is continuously compounded.
Either way, you should start by picking a symbol to represent the principal, like P.
P = the principal
Now, using this symbolic principal, calculate what will be earned over the 3-year variable-rate investment, by writing down expressions for interest earned, added to the principal, and reinvested, year-by-year.
You can then use the result in the standard formula for compounded interest at rate r with period n after t years. The symbol P will divide out of that equation, and you'll be left with an equation to solve for r (the rate requested in your exercise).
If none of this rings any bells, please let me know. And clarify whether or not the fixed-rate investment has compounded interest (and, if so, the compounding period).
Otherwise, see if you can do the first step. Write an expression for how much you will have, if you invest P dollars for one year at 10% interest.
That expression becomes the new principal, in the 2nd year investment at 20%.
And so it goes.