Let x be the number of weeks passed.
Denote by J(x) the money with Joe.
Denote by B(x) the money with his brother.
Denote by s(x) the money they raised together.
![J(x)=assets+money \: raised \\ J(x)=170 + 20x](https://img.qammunity.org/2023/formulas/mathematics/high-school/9nc01blimidy185qz4fkxv5y5ovonx0pqr.png)
![B(x)=assets+money \: raised \\ B(x)=80+40x](https://img.qammunity.org/2023/formulas/mathematics/high-school/95vpk5cvsk20uz8wcx1nx7t6gur5tyoyvk.png)
If we want Joe's brother to have more money at the x week, then B(x) has to be greater than J(x)
![B(x) > J(x) \\ 80 + 40x > 170 + 20x \\ 40x - 20x > 170 - 80 \\ 20x > 90 \\ x > (90)/(20) \\ x > 4.5 \: \: \: so \: \: \: x = 5](https://img.qammunity.org/2023/formulas/mathematics/high-school/mkfc4lbblpemt8n02skser50wuaab3dqzk.png)
We know that at the 5th week, Joe's brother will have raised more money than Joe, but how much money did they raise together by then?
![s(x) = B(x) + J(x) \\ s(5) = B(5) + J(5) \\ s(5) = 80 + 40(5) + 170 + 20(5) \\ s(5) = 80 + 200 + 170 + 100 \\ s(5) = 550 \: dollars \: raised](https://img.qammunity.org/2023/formulas/mathematics/high-school/jja16kllwonkx6li0eg6bgnhfqltd4v3jz.png)