A total of $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 $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?