Ok, so
We could solve this problem using a system of linear equations as follows:
x = amount invested at 6%
y = amount invested at 9%
We are given two numbers in the problem:
$5000 = total money invested in both accounts
$393 = total interest earned in both accounts
Then we could write:
This system can be solved using sustitution:
Replacing:
And y = 5000 - x, which is 5000 - 1900, and that is 3100.
We obtain that the solution of the system is:
Therefore, there was invested $3100 in the account at 9% and 1900 in the account at 6%.