The total amount invested is $1700.
The total profit is $56.
Lets call A the amount invested in fund A with 4% profit and B the amount invested in fund B with 2% profit.
The equation for the total amount is:

The equation for the profit can be written as:

We can start by clearing B in function of A from the first equation:

We replace the value of B in the second equation and solve for A:

Now we can solve for B:

Answer: he invest $1100 in the 4% profit fund and $600 in the 2% profit fund.