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