[tex] V=\text{ width }\cdot \text{ length }\cdot \text{ height },\\ V=(x-10)\cdot (x+5)\cdot 5,\\ V=5(x^2-5x-50) [/tex].
If the volume of the box is 1,250 cubic inches, then
[tex] 5(x^2-5x-50)=1250,\\ x^2-5x-50=250,\\ x^2-5x-300=0,\\ D=(-5)^2-4\cdot (-300)=25+1200=1225,\\ \sqrt{D} =35,\\ x_{1,2}=\dfrac{5\pm 35}{2} =20,-15 [/tex].
The length of the box is x+5=20+5=25 in. (the negative x is extra, because the length couldn't be negative).
Answer: the length of the box is 25 inches.