Keith invested $10,000 on Fund A and got a 3% profit. We let x be the amount of Keith invested on fund B that got 10% profit. The overall profit will have a 5% rate. The equation that represents this relation is written as

To solve for x, let's simplify the equation further. We have

Hence, Keith invested $4000 in Fund B.