The total investment was 21,020. Let:
x = part invested at 12% annual interest
The other part suffered a 5% loss. Since both parts must add up to 21,020, then:
21,020 - x = part that suffered a 5% loss.
The first part earned an interest:
The second part lost interest:
The sum of both interests is I1 + I2 and was 1,890, thus:
Operating:
Dividing by 0.17:
Thus, $17,300 was invested at 12% annual interest and 21,020 - 17,300 = $3,720 were invested at a 5% loss.
Answer: $17,300 and $3,720.