Phyllis invested 57000 dollars, a portion earning a simple interest rate of 5 percent per year and the rest earning a rate of 7 percent per year. After one year the total interest earned on these investments was 3290 dollars. How much money did she invest at each rate?