The preimeter of a rectangle is 50 inches. The width of the rectangle is 10 inches. What is the length of the rectangle?