Let x be the principal of the first loan, and y be the principal of the second loan, then, we can set the following system of equations:
![\begin{gathered} x+y=12,000, \\ 0.08x+0.09y=1,010. \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/g1qrei2j7bbns8q6s519959jgqpy7o5xy6.png)
Solving the first equation for x, we get:
![x=12,000-y\text{.}](https://img.qammunity.org/2023/formulas/mathematics/high-school/sxgkpziwe8g4clzs9r6gu8y73g0yz5ycwh.png)
Substituting the above result in the second equation, we get:
![0.08(12,000-y)+0.09y=1,010.](https://img.qammunity.org/2023/formulas/mathematics/high-school/hr4hojc2xtp8gt1c855lerw35dax424txx.png)
Solving the above equation for y, we get:
![\begin{gathered} 960-0.08y+0.09y=1,010, \\ 0.01y=1,010-960, \\ 0.01y=50, \\ y=5000. \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/jlyl904uigxx79qm1gwxrhcw5qrpigis5r.png)
Substituting y=5000, in x=12,000-y, we get:
![x=12,000-5000=7000.](https://img.qammunity.org/2023/formulas/mathematics/high-school/s3mks4r6t1nnffaertpwgxv0x5axe3q9rp.png)
Answer:
The principal of the 8% interest loan was $5000, and the principal of the other loan was $7000.