In this problem we have two incognitas, so we need to have two equations to solve the problem:
the first equation is the invest amound: (A is the amount invested in fund A, and B is the amound invested in the fund B)

And the second equation is going to be the total profit:

Now we can replace the equation 1 in the second one:

And finally we solve for B:
