James bought some apples and mangoes in the ratio 2:5. He gave

away 49 mangoes to his brother. The ratio of the number of mangoes
to apples became 4:3. Find the total cost James paid at first if a
mango cost $1.00 and an apple cost $0.40 less than a mango.

m/a = 5/2

(m-49)/a = 4/3
solve for m and a, then find
1.00m + (1.00-0.40)a