Answer:
The money invested in the account 1 was $8,000 and in the account 2 was 12,000.
Explanation:
In this case we can formulate a system of equations that could find the amount invested in each account, this is:
Money invested in the account 1 is A
Money invested in the account 2 is B
Eq. 1:

Eq. 2:

Replacing the equation 1 in 2, this is:





Now, we can find A:



The money invested in the account 1 was $8,000 and in the account 2 was 12,000.