Lisa invests $4,000 in two types of bonds, bond A and bond B.
A + B = 4000
Bond A offers a 10% return, and bond B offers a 6% return.
.10 A + .06 B = 340
Her total return on the investment is $340. since the relationship A+B=4000 must satisfy the setup for all values A and B
we can state that A = 2000 + n, and B = 2000 -n
afterall: 2000 +n + 2000 - n = 4000 for all n
.10(2000+n) + .06(2000-n) = 340, once we know n we know A and B