Jerry invests a total of $5000 in two different savings accounts. One account earns 2% interest, and the other account earns 5% interest. After one year, he earned a total of $181 simple interest. How much money did Jerry invest in teh account earning 5% interest?