We can find the number of weeks it took for Julie and Stephen to have the same amount in their accounts by setting their balance equal to each other and solving for x (the number of weeks).
400 - 20x = 100 + 30x
500 = 50x
x = 10
So, it took 10 weeks for Julie and Stephen to have the same amount in their accounts