John took 20,000 out of his retirement and reinvested it. He earned 4% for one investment and 5% on the other. How much did he invest in each if the total amount earned was 880?
The first principal portion is x. Which means the second principal portion is 20,000 - x. We have:
0.04x +...