SOLUTION
Let the money(principal) invested at 9% be x and
Let the money(principal) invested at 8% be y
Using the simple interest formula

We have

And

Combining, we have

Then,

Hence, the answer is 9% interest rate was $120,000 and 8% interest rate was $80,000