You invested $21,000 in two accounts paying 8% and 9% annual interest, respectively . If the total interest earned for the year was $1740, How much was invested at 8%?