Ernie deposited $4000 between two savings accounts. One account paid 4% simple interest and the other paid 2%. At the end of one year, Ernie had earned $140 in interest for both accounts. How much money did Ernie deposit in the account that paid 4% interest?
A)$2000
B)$2500
C)$2800
D)$3000
A)$2000
B)$2500
C)$2800
D)$3000