Mr. Dua invested money in two schemes A and B offering compound interest @ 8 p.c.p.a. and 9 p.c.p.a. respectively. If the total amount of interest accrued through two schemes together in two years was ` 4818.30 and the total amount invested was ` 27,000, what was the amount invested in Scheme A?