A total of $6000 is invested: part at 8% and the remainder at 12%. How much is invested at each rate if the annual interest is $540

If x is invested at 8%, then the rest (6000-x) is at 12%.

So now just add up the interest:
.06x + .12(6000-x) = 540
Now finish it off