A total of $9000 is invested: part at 6% and the remainder at 10%. How much is invested at each rate if the annual interest is $790?