Matt invests $9400 in two different accounts. The first account paid 7 %, the second account paid 10% in interest. At the end of the first year he had earned 823 in interest. How much was in eachaccount?