Rakesh bought some chocolates at 10 for rs 1.50 and an equal number at 20 paise each. he sold them at a rate of 20 for rs 4 and made profit of rs 10. how many chocolates did he purchase.?