Answer:
3.5 years (3 years 6 months)
Explanation:
You are going to use the simple interest formula for this:

P = initial balance
r = annual interest rate
I = interest
First, change 4% into a decimal:
4% ->
-> 0.04
Now, plug in the values into the equation:


The money was invested for 3.5 years (3 years 6 months).