A foreclosure finds a homeowner with the following liens: a first mortgage dated five years earlier; a second mortgage dated two years earlier; an unpaid real estate tax bill for the current year; and a mechanic's lien for work performed five years earlier. Which of these liens will be paid off first?