1987 AMC 12 Problem 12

Attempt Problem 12 of the 1987 AMC 12 below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1987 AMC 12 solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

12.

In an office, at various times during the day the boss gives the secretary a letter to type, each time putting the letter on top of the pile in the secretary’s in-box. When there is time, the secretary takes the top letter off the pile and types it. If there are five letters in all, and the boss delivers them in the order 1,1, 2,2, 3,3, 4,4, 5,5, which of the following could not be the order in which the secretary types them?
1,1, 2,2, 3,3, 4,4, 55
2,2, 4,4, 3,3, 5,5, 11
3,3, 2,2, 4,4, 1,1, 55
4,4, 5,5, 2,2, 3,3, 11
5,5, 4,4, 3,3, 2,2, 11
Answer: D
Concepts:stack orderpermutationslogical feasibility
Small hint:
Letters still in the pile always remain in increasing order from bottom to top
Big hint:
After letter 44 is typed, examine which smaller letter must be on top before 22 can be typed
Solution:
To type 44 first in choice D, letters 1,2,3,41,2,3,4 must all have been delivered, leaving 33 on top after 44 is removed. Letter 55 can then be delivered and typed, but 33 is still above 2,2, so 22 cannot be typed next. Thus 4,5,2,3,14,5,2,3,1 is impossible. Each other listed order can be produced by interleaving deliveries and typings.
Therefore the correct answer is D.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.