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