2020 AIME I Problem 5

Six cards numbered 1 through 6 are to be lined up in a row. Find the number of arrangements of these six cards where one of the cards can be removed leaving the remaining five cards in either ascending or descending order.