if Sam invested $10,000 at simple interest, some at 3% and some at 4% and paid $320 , what was the amount invested at each rate?

.03(x)+ .04(10,000-x) = 320