a bank loaned $20000, part of it at the rate of 8% per year and the rest at 18% per year. if the interest received in one year totaled $2000, how much was loaned at 8%?