Эти последние пять красивых столов

Can anyone here give me some insight as to why пять is not in the genitive? I know that numeral 1 applies the nominative singular, 2-4 genitive singular, and...