Условие:

40 + 3
577
2420
555
3930
6 + 70
10 + 7
199

40 + 3 = 43
577 = 50
2420 = 4
555 = 50
3930 = 9
6 + 70 = 76
10 + 7 = 17
199 = 10