A fruit seller had the same number of papayas and mangoes at first. He

threw away 85 rotten papayas and sold 1/4 of his remaining papayas. He
threw away 60 rotten mangoes and sold 1/3 of his remaining mangoes. After
that, he was left with an equal number of papayas and mangoes.
(a) How many papayas did the fruit seller have at first?
(b) The fruit seller sold his mangoes at 3 for $5.80. How much did he
collect from the sale of the mangoes?

threw 1/4 (p-85) so has 3/4(p-85)

has 2/3(m-60) and sold 1/3(m-60)
so
3/4(p-85) = 2/3(m-60)
BUT we know p = m
3/4(p-85) = 2/3(p-60)
9(p-85)= 8(p-60)
p = 765 - 480 = 285 and m = 285

sold (1/3)(285-60) = 75 mangos
75 mangoes * $5.80/ 3 = $145