contestada

A three-digit number X Y Z is formed of three different non-zero digits X, Y and Z. A new number is formed by rearranging the same three digits. What is the greatest possible difference between the two numbers? (For example, 345 could be rearranged into 435, for a difference of 435 − 345 = 90.)
A. 293
B. 564
C. 984
D. 792
E. 456