How many chocolates did Rakesh purchase if he bought some at a rate of 10 for Rs 1.50 and an equal number at 20 paise each, and later sold them at a rate of 20 for Rs 4, resulting in a profit of Rs 10?