You invested $7,000 in two accounts paying 6% and 8% annual interest. If the total interest earned for the year was $520, how much was invested at each rate?​