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