A total of $6000 is invested: part at 5% and the remainder at 9%. How much is invested at each rate if the annual interest is $530?