Two investments totaling $ 18,000 produce an annual income of $1370. One investment yields 7% per year, while the other yields 8% per year. How much is invested at each rate?