Last year, Ann had $10,000 to invest. She invested some of it in an account that paid 7% simple interest per year, and she invested the rest in an account that paid 8% simple interest per year. After one year, she received a total of $790 in interest. How much did she invest in each account