Phyllis invested a total of 70000 dollars, spread across two accounts. One account has a simple interest rate of 5 percent per year. The second account has a rate of 6 percent per year. After one year, the total interest earned on these investments was 3870 dollars. How much money did she invest at each rate?