Peter invested an amount of Rs. 12,000 at the rate of 10 p.c.p.a simple interest and another amount at the rate of 20 p.c.pa simple interest. The total interest earned at the end of one year on the total amount invested became 14 p.c.p.a. Find the total amount invested