A person who has a certain amount with him goes to the market. With this amount he can buy either 50 oranges or 40 mangoes. He retains 10% of the amount for taxi fare and buys 20 mangoes and out of the balance he purchases oranges. The number of oranges that he can purchased is