Amit borrows some money at the rate of 5% p.a. for the first four years. He borrows the same amount of money at the rate of 10% p.a. for the next two years, and at the rate of 20% per annum for next one year. If he pays a total interest of ₹ 30,000 at the end of six years, how much money did he borrow each time?