A person invests $4000: part of the investment is at 10% interest and the rest at 12% interest. If she received $460 at the end of the year in interest, how much was invested at each rate?(whole number in dollars)