A man invests 10,000 dollars in two seconds in two accounts, the first yielding 4 percent annual interest and the second, 5 percent. If x is invested in the first account, how much will the annual interest does the man earn on his investment?