Chris has $400 in his bank account and he deposits $5 per week thereafter into his account. His brother Ben has $582 in his account and withdraws $8 per week from his account. Assuming this pattern continues, write and solve an equation to determine how many weeks it will take for them to have the same amounts in their bank accounts.