Alan and Max had some money. They wanted to buy a toy that cost $35. If only Alan paid, the ratio of his money left to Max's money would be 2:3. If only Max paid, the ratio of Alan's money to the money Max had left would be 11:4.

(a) What was the ratio of Alan's money to Max's money?
(b) How much money did the boys have altogether?

(a-35)/m = 2/3

a/(m-35) = 11/4

(a) a/m = 11/9
(b) a+m = 140