Last year, Josh had $20,000 to invest. He invested some of it in an account that paid 7% simple interest per year, and he invest
ed the rest in an account that paid 9% simple interest per year. After one year, he received a total of $1560 in interest. How much did he invest in each account?