$400 interest is earned on a principal of $2,000 at a simple interest rate of 5% interest per year. For how many years was the principal invested?