If the interest earned is $25 and the principal is $500 and the interest rate is 5%, what is the time?

Formula = simple interest= principal times annual interest rate times the time in years