I bought a certain number of apples at 4 for 6 paise and 3/5 of that number at 3 for 6 paise by selling them at 16 for rs.30p. I gained 24 paise.. How many apples did I buy????