Last year Rachel invested money in two accounts. The first account had an interest rate of 2% and the second account had an interest rate of 4% . If she invested $300 more in the first account than the second and her total interest income was $516 , how much did she invest at each rate?