Here, we want to know the amount invested in each of the two accounts
Let the amount invested in the first account be $x while the amount invested in the second account be $y
From the question;
[tex]x\text{ + y = 20,000}[/tex]Now let us work with the interests;
[tex]\begin{gathered} \text{For the first account, we have the interest as;} \\ 10\text{ percent of x = 0.1x} \\ \\ \text{For the second account, we have the interest as } \\ 9\text{ percent of y which is 0.09y} \\ \\ \text{Adding both; } \\ \\ 0.1x\text{ + 0.09y = 1830} \end{gathered}[/tex]From the first equation, we can have;
[tex]x\text{ = 20000-y}[/tex]Substitute this into the equation of the interest;
[tex]\begin{gathered} 0.1(20000-y)\text{ + 0.09y = 1830} \\ 2000-0.1y+0.09y\text{ = 1830} \\ \\ 0.1y-0.09y\text{ = 2000-1830} \\ 0.01y\text{ = 170} \\ \\ y\text{ = }\frac{170}{0.01} \\ \\ y\text{ = 17,000} \end{gathered}[/tex]From above,
[tex]\begin{gathered} x\text{ = 20000-y} \\ \\ x\text{ = 20000-17000} \\ \\ x\text{ = \$3000} \end{gathered}[/tex]