a grocery store bought some mangoes at a rate of 5 for a dollar . they were separated into two stacks , one of which was sold at a rate of 3 for a dollar and the other at a rate of for a dollar . what was the ratio of the number of mangoes in the two stacks if the store broke even after having sold all of its mangoes ?
the cost price of a mango = 1 / 5 dollars . the selling price of a mango from the first stack = 1 / 3 dollars - - > the profit from one mango = 1 / 3 - 1 / 5 = 2 / 15 = 4 / 30 dollars . the selling price of a mango from the second stack = 1 / 8 dollars - - > the loss from one mango = 1 / 5 - 1 / 8 = 3 / 40 dollars . the profit from one mango from the first stack is 4 times the loss from one mango from the second stack . the ratio is 4 / 30 * 40 / 3 = 16 / 9 b
divide(subtract(divide(const_1, 3), divide(const_1, 5)), subtract(divide(const_1, 5), divide(const_1, multiply(const_2, const_4))))