Let the amount invested at 3% = x Let the amount invested at 6% = y. From the total amount invested, we get this equation. x + y = 18
Now we look at the interest earned. The 3% account earns 0.03x The 6% account earns 0.06y 5% on the entire amount is 0.05 * 18 = 0.9 This gives us the second equation.
0.03x + 0.06y = 0.9
Now we have a system of 2 equations in 2 unknowns.