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