A loan is repaid by 10 annual payments at end of each year. The first five payments are $5000 each and last five payments are $4000 each. The effective rate of interest is i = 0.06. Determine the outstanding loan balance immediately after the (a) third payment and (b) seventh payment.