An investor invested a total of ​$2100 in two mutual funds. One fund earned a ​4% profit while the other earned a ​2% profit. If the​ investor's total profit was ​$62​, how much was invested in each mutual​ fund?