You inherit $10,000 with the stipulation that for the first year the money must be placed in two investments paying 8% and 12% annual interest, respectively. How much should be invested at each rate if the total interest earned for the year is to be $950?