A bank loaned out $33,500, part of it at the rate of 12% annual interest, and the rest at 14% annual interest. The total interest earned for both loans was $4,370.00. How much was loaned at each rate?​