The length of a rectangle measures 15 units more than the width, and the perimeter of the rectangle is 50 units. Let y be the width and x be the length of the rectangle. What is the width of the rectangle?