(2900-x-2500)(8+4*x/50)=5000
(400-x)(8+2x/25)=5000
(400-x)(200+2x)=125000
x^2-300x+22500=0
(x-150)^2=0
x=150