You have $6000 to invest in stock funds. The first fund pays 5% annual interest and the second account pays 9% annual interest. If after a year you have made $380 in interest, how much money did you invest in each account?