Given:
$4000 is invested in two accounts paying 2% and 4% annual interest.
The total interest earned for the year was $140.
To find:
The amount invested at each rate.
Step-by-step explanation:
Let us frame the equation as follows,

Thus,
The amount invested at 2% interest is $1000.
The amount invested at 4% interest is $3000.
Final answer:
The amount invested at 2% interest is $1000.
The amount invested at 4% interest is $3000.