A certain property has the following liens recorded against it: a mortgage lien dating from three years ago; a mechanic's lien dating from two years ago; a
real estate tax lien for the current year; and a second
mortgage lien dating from the current year. In case
of a foreclosure, which of these liens will be paid first?