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