A veterinary office takes out a loan to purchase a new set of digital animal scales that costs $12,250. The interest rate is 6.5%, and the total interest paid is $2,388.75. How many years is the loan for?