Nico is saving money for his college education. He invests some money at 9​%, and ​$1700 less than that amount at 8% The investments produced a total of ​$306 interest in 1 yr. How much did he invest at each​ rate?