Larry Mitchell invested part of his $32,000 advance at 4% annual simple interest and the rest at 6% annual simple interest. If his total yearly interest from both accounts was $1,340, find the amount invested at each rate