There are many ways to solve this:
First way is to use tangent-
Tan45= 9/x
X= 9/tan45
X=9
The other way is to use 45-45-90 triangle theorem-
In 45-45-90 triangle theorem the sides are congruent so if one side has the measure of 9 then the other side also has to be 9