x: in the 8% account
10970-x: in the 9% account
[tex]x\cdot 0.08+(10970-x)\cdot 0.09=898.71[/tex]
[tex]x\cdot 0.08+10970\cdot 0.09 -x\cdot 0.09=898.71[/tex]
[tex]-x\cdot 0.01+987.3=898.71[/tex]
[tex]x\cdot 0.01=987.3-898.71[/tex]
[tex]x\cdot 0.01=88.59[/tex]
[tex]\boxed{x=8859}[/tex]
[tex]10970-x=10970-8859=2111[/tex]
---
Answer:
$8859 invested in the 8% account
$2111 invested in the 9% account