40% of the fruits at a fruit stall were mangoes and the rest were oranges. When some mangoes were sold, 20% of all the fruits left were mangoes. A total of 90 mangoes and oranges were left at the fruit stall. How many mangoes were sold?

30 mangoes