An investor invested a total of $2900 in two mutual funds.One fund earned a 6% profit while the other earned a 4% profit.If the investors total profit was $138, how much was invested in each mutual fund?