The total of two investments are $5,000. The average annual interest rate for one investment is 10% and 14% for the other. The total annual interest is $620. How much is invested at each rate.