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:
![I_1=0.12x](https://img.qammunity.org/2023/formulas/mathematics/college/hk3gsedhz8gay5h6pb1bw2wn3td63b1bmw.png)
The second part lost interest:
![I_2=-0.05(21,020-x)](https://img.qammunity.org/2023/formulas/mathematics/college/i4utgvm5shraeihw9zrplrccpom3vdogdu.png)
The sum of both interests is I1 + I2 and was 1,890, thus:
![0.12x-0.05(21,020-x)=1,890](https://img.qammunity.org/2023/formulas/mathematics/college/80al2cvu9jusp74gb6lfl6a748h42r1kg1.png)
Operating:
![\begin{gathered} 0.12x-1051+0.05x=1,890 \\ \\ 0.17x=1,890+1,051=2,941 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/tbtqhyjo355ojcczaijp6vokcjaugazhel.png)
Dividing by 0.17:
![x=(2,941)/(0.17)=17,300](https://img.qammunity.org/2023/formulas/mathematics/college/czg4d161p08kkvgsogik4iq9bve7d5r1qn.png)
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.