Nico is saving money for his college education. He invests some money at 5%, and $2300 less than that amount at 3%. The investments produced a total of $163 interest in one year. How much did he invest at each rate?