Thomas invests X into Fund $1$ at the beginning of each year for $10$ years. Fund $1$ pays interest annually into Fund $2$. Fund $1$ earns $7$% annually while Fund $2$ earns $6$% annually. After $10$ years, Thomas has a total of $50000$. Calculate X.
Interest earned is given by $0.07 X$
Amount at the end of $10$ years
$50000=X+0.07X(\frac{1.06^{10}-1}{0.06})$
This gives $X=26 005.69$, when answer is $3416.80$