Tamara invests $8000 in two different accounts. The first account has a simple interest rate of 3% and the second account has a simple interest rate of 2%. How much did she invest in each account if the interest earned in them is the same at the end of one year?