A bank loaned out $28,500, part of it at the rate of 10% annual interest, and the rest at 4% annual interest. The total interest earned for both loans was $2,190.00. How much was loaned at each rate?