Question
A and B each have a certain number of mangoes. A says to B "If you give me 30 of your mangoes, I will have twice as many as left with you." B replies, "If you give me 10, I will have thrice as many as left with you." How many mangoes does each have ?