Assuming your numbers are correct and looking at this in a vacuum, I would look at this as, you're paying $17.5MM for the baseline pitcher, which is totally worth it based strictly on his performance, and the other $22.5MM for incremental gameday ticket revenue.
Of course, there is incremental gameday revenue outside of actual tickets his pitching days sell, not only concessions revenue on his gamedays, but incremental sales from days he's not pitching as the team is better and a better draw overall for having him on it. That would end up funding more than the remaining $17.5MM, I would guess.