Based on the amount that both of them are depositing as well as their beginning balance, they will have the same amount after 5 weeks.
The formula to find out Andy's account after n weeks is:
= Beginning amount + Number of weeks x Amount deposited per week
= 400 + 10n
For Rachel it would be:
= 250 + 40n
Equate both of these to find the week they will be equal:
400 + 10n = 250 + 40n
400 - 250 = 40n - 10n
150 = 30n
n = 150/30
n = 5 weeks
In conclusion, it will take 5 weeks for their balances to be equal.
Find out more at https://brainly.com/question/3529093.