you invested 5000 between two accounts paying 3% and 7% annual intrest. If the total intrst earned for the year was $310, how much was invested at each rate?