After a 21 turn, the order of the digits is reversed and each digit is turned upside down: 1 stays 1, 8 stays 8, 6 becomes 9 and 9 becomes 6.
So the first and last digits must turn into each other, and so must the two middle digits. The cards make these pairs: 1 with 1, 8 with 8, and 6 with 9. He needs two of these pairs, one outside and one in the middle.
(i) For the largest number, start with the largest digit, 9. Then the last digit must be 6. The best middle pair left is 8 and 8:
9886
Check: reversed it is 6, 8, 8, 9, and turned upside down this becomes 9, 8, 8, 6. The largest number is 9886.
(ii) For the smallest number, start with the smallest digit, 1. Then the last digit must be 1. For the middle, 6 then 9 is smaller than 8 then 8:
1691
Check: reversed it is 1, 9, 6, 1, and turned upside down this becomes 1, 6, 9, 1. The smallest number is 1691.