Ramesh has a total of Rs.1000 as currency notes in the denominations of 100, 50 and 10. The ratio of the number of 50 notes and 100 notes is 3:2. If he has a total of 40 notes, how many notes of each denomination does he have? [4 MARKS]