I'm having trouble understanding the solution for this problem
Susan invests Z at the end of each year for seven years at an effective annual interest rate of 5%. the interest credited at the end of each year is reinvested at an annual of 6%. The accumulated value at the end of 7 years is X.
Lori invests Z at the end of each year for fourteen years at an effective annual interest rate of 2.5%. the interest credited at the end of each year is reinvested at an annual of 3%. The accumulated value at the end of 14 years is Y.
Find $\frac YX$
The solution gives a formula:
$Accumulated Value = NZ + .05Z(Is)_{\overline6|.06}$
Where N is the number of years, and Z is the deposit amount.
I don't understand where this formula came from? Is there anyway to solve this question other than using this formula?