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