A, B and C are three associates in a firm. A invests Rs. 6,000, B invests Rs. 9,000 and C invests Rs. 12,000. A and B are the working partners and get 10% and 20% of the profit respectively as their salary, and the remaining profit is distributed in the ratio of their capitals. If the profit made at the end of the year is Rs. 27,000, then what is the share of A?