where A is the total amount, p is the principal invested, r is the interest rate as a decimal number, n is the number of times per year the interest is compounded, and t is the number of years.
The principal in this problem is 25,000; the interest rate is 3% = 3/100 = 0.03; the number of times the interest is compounded is 4; and the number of years is 8: