Plank inside the square

The diagram shows a 1byx rectangular plank which fits neatly inside a 10×10 square frame. What is the value of x?