Use a system of two equations in two variables to solve the problem.
A state employees' pension fund invested a total of one million dollars in two accounts that earned 3.5% and 4.5% annual simple interest. At the end of the year, the total interest earned from the two investments was $41,000. How much was invested at each rate?