An investor invested a total of 1,400 in two mutual funds. One fund earned a 8% profit while the other earned a 3% profit. if the investor's profit was $67, how much was invested in each mutual fund?