Helene invested a total of $1000 in two simple-interest bank accounts. one account paid 5% annual interest; the other paid 6% annual interest. The total amount of interest she earned after 1 year was

Helene invested a total of $1000 in two simple-interest bank accounts. one account paid 5% annual interest; the other paid 6% annual interest. The total amount of interest she earned after 1 year was $58. Find the amount invested in each account.