Answers:
2% bond: $11000
4% bond: $13000
========================================================
Explanation:
x = amount invested in the 4% bond
y = amount invested in the 2% bond
Amounts are in dollars
The two amounts add to $24,000 so
x+y = 24000
y = -x+24000 is one equation to set up
0.04x = interest earned from the 4% bond
0.02y = interest earned from the 2% bond
0.04x+0.02y = total interest earned = $700
0.04x+0.02y = 700 is another equation to set up
------------
The system of equations is

Apply substitution. Solve for x.
0.04x+0.02y = 700
0.04x+0.02(-x+24000) = 700
0.04x-0.02x+480 = 700
0.02x= 700-480
0.02x= 220
x= 220/(0.02)
x = 11000
Use this to find y
y = -x+24000
y = -11000+24000
y = 13000