cesar invests $8500 in two different accounts. the first account paid 5 %, the second account paid 7 % in interest. at the end of the first year he had earned $501 in interest. how much was in each account?