Aayan bought as many 25 paisa postal stamps as 50 paise stamps and paid Rs. 9 fir them. How many stamps of each denomination did he buy.