A total of $12,000 is invested at two different rates: $5,000 of it is invested at 6%, and the rest is invested at 8%. How much total interest is earned at the end of one year?