Max and Pierce had an equal amount of money. Every day, Max spent $36 and Pierce spent $48. After Pierce had spent all his money, Max still had $240 left. How much did each of them have at first?

Im sorry dude cant help you

Pierce spent all his money after x/48 days

so
36 * x/48 + 240 = x
x = 960