A bank loaned out 17000 part of it at the rate of 7% per year and the rest 15% per year. If the interest received in one year totaled 2000, how much was loaned at 7%?