Answer:
Amount invested in account A: $3,250
Amount invested in account B: $1,750
Explanation:
Let x = the amount invested in account A
y = the amount invested in account B
So now you have 2 equations:
x + y = 5,000 ---> x = 5,000 - y
0.02x + 0.04y = 135
Substitute x = 5,000 - y into 0.02x + 0.04y = 135
0.02(5,000 - y) + 0.04y = 135
100 - 0.02y + 0.04y = 135
100 + 0.02y = 135
0.02y = 35
y = 1750
x = 5000 - 1750
x = 3250
Amount invested in account A: $3,250
Amount invested in account B: $1,750