The payback amount is A: A = P*r*t, where r is the interest rate as a decimal fraction.
Then $3,000 = $20,000*r*(4 yrs), or
$3,000
------------------------ = r = 0.0375
$80,000
The interest rate was 3.75%.