A man took a loan of Rs 12,000 with simple interest for as many years as the rate of interest per year. If he paid Rs 3,000 as interest at the end of loan period, what was the rate of interest?​