Question 1189749
let b equal the amount of money that bill has.
let j equal the amount of money that james has.


bill has 120 dollars more than james.
that gets you b = j + 120.


bill spends 25 dollars a week and james spend 22 dollars a week.
they will both run out of money at the same time.


bill runs out when b - 25x = 0
james runs out when j - 22x = 0


since both expressions are equal to 0, they are equal to each other.
you get b - 25x = j - 22x
since b = j + 120, you get j + 120 - 25x = j - 22x.
subtract j from both sides of the equation and add 25x to both sides of the equation to get 120 = 3x
solve for x to get x = 40.


bill will run out of money in 40 weeks.
that's your solution.


james will also run out of money in 40 weeks.
bill will have spent 25 * 40 = 1000 dollars.
james will have spent 22 * 40 = 880 dollars.