The diagram shows a 1×x rectangular plank which fits neatly inside a 10×10 square frame.

What is the value of x?