Neeka gave one fifth of her mangoes to her brother, she sold five eighths of the remainder, she was left with 12 mangoes. How many mangoes did she have in the first place?

4/5 M*(3/8)=12

This says she has 3/8 of 4/5 of the original mangos.

Or you could do it the number sold:
1/5 M + 5/8(4/5)M= M-12

To solve this problem, we can set up an equation based on the given information. Let's denote the original number of mangoes as M.

According to the problem, Neeka gave one-fifth of her mangoes to her brother. Therefore, she would have 4/5 of the original number of mangoes remaining. This can be expressed as (4/5)M.

Next, Neeka sold five-eighths of the remaining mangoes. This means that she sold (5/8) of the remaining (4/5)M mangoes. So, the amount of mangoes sold would be (5/8) * (4/5)M.

We are told that Neeka was left with 12 mangoes after the selling. Therefore, we can set up the equation:

(4/5)M - (5/8) * (4/5)M = 12

Now, let's solve the equation to find the value of M, which represents the original number of mangoes.