A baseball stadium holds 15,002 seats. The lower level has 50 fewer than three times as many seats as the upper level. The middle level has 40 more than twice as many seats as the upper level.

x + (2x + 40) + (3x – 50) = 15,002

The upper level has how many seats