A total of $5000 is invested part of 6% and the remainder at 12% how much is invested at each rate if the annual interest is $480