how do I do this word problem?

Answer:
5 weeks
Step-by-step explanation:
John deposits $5 per week and has $10, so his equation is 5x + 10.
Jasmine's equation is 3x + 20.
Make them equal to each other and solve for x:
5x + 10 = 3x + 20
Subtract 10 from each side
5x = 3x + 10
Subtract 3x from each side
2x = 10
Divide each side by 2
x = 5
Answer:
5 weeks
Step-by-step explanation:
John:$10,$15,$20,$25,$30,$35
Jasmine:$20,$23,$26,$29,$32,$35
5 weeks