AMC8 1989 Problem 14

When placing each of the digits 2,4,5,6,9 in exactly one of the boxes of this subtraction problem, what is the smallest difference that is possible?
Image
Answer Choices
A. 58
B. 123
C. 149
D. 171
E. 176