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.
If we want Joe's brother to have more money at the x week, then B(x) has to be greater than J(x)
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?