The factors of the number 40 are: 1, 2, 4, 5, 8, 10, 20, 40.
If you add them up, you will get the total of 90. Now subtract 40 to get 50