To solve this, you need to set the two equations equal to each other.
125+20x=100+25x
X represents the amount of weeks
First, you cannot have the same variable on both sides of an equation. So, subtract 20x from both sides.
125=100+5x
Subtract 100 from each side.
25=5x
Divide each side by 5
5=x
x=5
Plug 5 into the equation as x to check your work.
125+20(5)=100+25(5)
125+100=100+125
225=225
They will each have 225 dollars in 5 weeks