Mr. Dua invested money in two schemes P and Q offering compound interest @ 8 p.c.p.a. and 9 p.c.p.a respectively. if the total amount of interest accrued two schemes together in two years was Rs 4818.30 and the total amount invested was Rs 27, 000, what was the amount invested in Scheme P?