Условие:

5046
7038
506
708
9024
9420
1002
10038

5046 = 50 − (40 + 6) = (5040) − 6 = 106 = 4
7038 = 70 − (30 + 8) = (7030) − 8 = 408 = 32
506 = (40 + 10) − 6 = 40 + (106) = 40 + 4 = 44
708 = (60 + 10) − 8 = 60 + (108) = 60 + 2 = 62
9024 = 90 − (20 + 4) = (9020) − 4 = 704 = 66
9420 = (90 + 4) − 20 = 4 + (9020) = 4 + 70 = 74
1002 = (90 + 10) − 2 = 90 + (102) = 90 + 8 = 98
10038 = 100 − (30 + 8) = (10030) − 8 = 708 = 62