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