Ken invests $6,000 into two accounts. One account earns 8% interest and the other earns 12% interest. After one year his total interest earned from the two accounts totals $580. How much did Ken invest in the 8% account?