Answer:
10 weeks
Explanation:
Linear Equations
There are situations where one variables is related in one equation and we need to find its value by solving the equation. There are many techniques available to solve it.
The conditions of the problem state that Andy has $20 and earns $5 per week selling candy. If
is the amount of money Andy has when x weeks have passed, then
![\displaystyle M_1=20+5x](https://img.qammunity.org/2020/formulas/mathematics/middle-school/b8wh4d9mzj2e5zf3npq7ewtn2xps07vla4.png)
We also know that Jennifer has $50 and earns $2 per week selling chocolate. If
is the amount of money she has after x weeks, then
![\displaystyle M_2=50+2x](https://img.qammunity.org/2020/formulas/mathematics/middle-school/g9bkrpog124gjn81830g9x6lg6pgqgwqnf.png)
They will have the same amount of money when
![\displaystyle M_1=M_2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/gcimu8qdqekdkbdal1ero0xiidh1gnvyo7.png)
Or equivalently
![\displaystyle 20+5x=50+2x](https://img.qammunity.org/2020/formulas/mathematics/middle-school/1cg3cf7j24qk6dzpnr3e3at4t3tpfljba0.png)
Rearranging
![\displaystyle 5x-2x=50-20](https://img.qammunity.org/2020/formulas/mathematics/middle-school/obw6r5xediu0znegv3sbokw2q46y39mjx6.png)
Simplifying
![\displaystyle 3x=30](https://img.qammunity.org/2020/formulas/mathematics/middle-school/mst66xuadql0e1u91s7dteoiijqoqwqxr3.png)
Solving for x
![\displaystyle x=10](https://img.qammunity.org/2020/formulas/mathematics/middle-school/nddk9o8k95savxsdawdut7hrhpmqxvo1hb.png)
As for checking, Andy will have
![\displaystyle M_1=20+5(10)=$70](https://img.qammunity.org/2020/formulas/mathematics/middle-school/4a0vcbu6wo59b41ca62vmypll1hbq5g0p8.png)
![\displaystyle M_2=50+2(10)=$70](https://img.qammunity.org/2020/formulas/mathematics/middle-school/gmhiskkbx8qb9m20wt6a9wcgklh8rbdlz8.png)