$ 5900 is invested, part of it at 12% and

part of it at 8%. For a certain year, the total yield is $ 596.00. How much was invested at each rate.

.12x + .08(5900-x) = 596

solve for x, the 12% amount.