Katie invested a total of $6000 part at 3% simple interest and part at 4% simple interest at the end of one year the investment had earned $216 interest how much was invested at each rate?