A total of Rs 8,500 was invested in three interest earning accounts. The interest rates were 2%, 3% and 6% if the total simple interest for one year was Rs 380 and the amount ,invested at 6% was equal to the sum of the amounts in the other two accounts, then how much was invested in each account? (use Cramer’s rule).