Plank inside the square

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