Part of $3000 is invested at 12%, another part at 13%, and the remainder at 14%. The total yearly income from the three investments is $400. The sum of the amounts invested at 12% and 13% equals the amount invested at 14%. Determine how much is invested at each rate.