you invested $6000 in two accounts paying 7% and 9% annual interest. at the end of the year, the total interest from these investments was $510. how much was invested at each rate?