A bank loaned out $10,000, part of it at the rate of 7% per year and the rest at 17% per year. If the interest received in one year totaled $1000, how much was loaned at 7%