An investor invested a total of 2900 in two mutual funds. One fund earned a 9% profit the other earned a 5% profit. If the investors total profit was $217 how much was invested in each mutual fund.