A total of $10000 was invested between two mutual
funds. At the end of the year, fund A returned 3% interest
and fund B returned 7% interest. If the total interest for
the year was $580, how much had been invested in fund
A?