Ben invests $4300 in two different accounts. The first account paid 7%, the second account paid 4% in interest. At the end of the year he had earned $247 in interest. How much was in each account?