We can calculate the total amount that is to be lost by multiplying the percentages and the amounts.
Loss: (0.20)($100,000) + (0.40)($75,000) = $50,000
Gain: (0.40)($250,000) = $100,000
The gain is larger compared to the possibly loss. Thus, the IT company should invest in the app.