a total of 4000 is invested, part of it at 5% and the remainder at 6%. If the total yearly interest was amounted to 230, how much was invested at each rate?