Step-by-step explanation:
We are given that there are two investments made by Rafael. One yielded a 4% profit (Fund A), and the other yielded a 1% profit (Fund B). If both funds together returned a total of 2% profit then we can set up the following equation;

From the details given we can also deduce the following;

Note that he invested $4000 in Fund A, and we can now substitute for the value of A into the equation;

We can simplify the right side of the equation further;

Next we combine like terms;

Divide both sides by 0.01;

ANSWER:
Amount invested in Fund B = $8,000