A student invested $5000 in two different savings accounts. The first savings account pays an annual interest rate of 3%. The second savings account pays an annual interest rate 4%. At the end of one year, she had earned $185 in interest. How much money did she invest in each account.