The amount invested in the account that yields 7% interest is $4000.
The amount invested in the account that yields 12% interest is $1000.
a + b = 5000 equation 1
0.07a + 0.12b = 400 equation 2
Where:
a = amount invested in the account that yields 7% interest.
b = amount invested in the account that yields 12% interest.
Multiply equation 1 by 0.07
0.07a + 0.07b = 350 equation 3
Subtract equation 3 from equation 2
0.05b = 50
b = 50 / 0.05
b = 1000
Subtract 1000 from 5000: 5000 - 1000 = 4000
To learn more about linear functions, please check: https://brainly.com/question/26434260
#SPJ1