Pick four digits, arrange them in decreasing order for the largest number and in increasing order for the smallest.
a. Difference greater than 5085 → choose digits that are far apart, such as 9, 8, 1, 0.
9810 − 1089 = 8721 and 8721 > 5085 ✓
b. Difference less than 5085 → choose digits that are close together, such as 5, 4, 3, 2.
5432 − 2345 = 3087 and 3087 < 5085 ✓
c. Sum greater than 9779 → choose big digits, such as 9, 8, 7, 6.
9876 + 6789 = 16,665 and 16,665 > 9779 ✓
d. Sum less than 9779 → choose small digits, such as 4, 3, 2, 1.
4321 + 1234 = 5555 and 5555 < 9779 ✓