Let x be the width of the cardboard, then the length is x+15. If 5 unches square is cut from each corner, then the new length is x+15-5·2=x+5 and the new width is x-5·2=x-10. The height of the formed box is 5 in. Now you can find the box volume:
.
If the volume of the box is 1,250 cubic inches, then
.
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.