A 30-year loan is to be repaid with equal installments at the end of each year. The amount of interest paid in the 3rd installment is a; the amount of interest paid in the 17th installment is b. Find the expression for the interest paid in the 24th installment.