an investor invested a total of $2100 in two mutal funds. one fund earned a 9% profit while the other earned a 7% profit.if the total profit was $161 how much was invested in each fund

.09x + .07(2100-x) = 161

x = 700

so, $700 at 9% and $1400 at 7%