AMC8 1987 Problem 8

9876 If A and B are nonzero digits, then the number of three whole numbers is

Answer Choices
A. 4
B. 5
C. 6
D. 9
E. depends on the values of A and B