an investment of $12000 is deposited into two simple interest accounts. On one account, the annual simple interest rate is 7.8%. On the other, the annual simple interest rate is 9%. The total interest earned for one year is $1020. How much was invested in each account?