1987 AMC 12 Problem 18

Attempt Problem 18 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).

18.

It takes AA algebra books (all the same thickness) and HH geometry books (all the same thickness, which is greater than that of an algebra book) to completely fill a certain shelf. Also, SS of the algebra books and MM of the geometry books would fill the same shelf. Finally, EE of the algebra books alone would fill this shelf. Given that A,A, H,H, S,S, M,M, EE are distinct positive integers, it follows that EE is
AM+SHM+H\frac{AM+SH}{M+H}
AM2+SH2M2+H2\frac{AM^2+SH^2}{M^2+H^2}
AH−SMM−H\frac{AH-SM}{M-H}
AM−SHM−H\frac{AM-SH}{M-H}
AM2−SH2M2−H2\frac{AM^2-SH^2}{M^2-H^2}
Answer: D
Concepts:linear equationsrates and mixturesalgebraic elimination
Small hint:
Let aa and gg be the two book thicknesses and normalize the shelf length to 11
Big hint:
Eliminate the geometry-book thickness from Aa+Hg=1Aa+Hg=1 and Sa+Mg=1Sa+Mg=1
Solution:
Let the shelf length be 1,1, and let a,ga,g be the algebra- and geometry-book thicknesses. Then Aa+Hg=1,Sa+Mg=1,Ea=1. \begin{aligned} Aa+Hg&=1,\\ Sa+Mg&=1,\qquad Ea=1. \end{aligned} Multiplying the first equation by M,M, the second by H,H, and subtracting gives (AM−SH)a=M−H. (AM-SH)a=M-H. Hence E=1a=AM−SHM−H. E=\frac1a=\frac{AM-SH}{M-H}.
Thus 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.