In a right triangle, the tangent of an angle is the length of the opposite side divided by the length of the adjacent side. In our triangle, 7 is the adjacent side to 30º, and x is the opposite side.
From this, we have the following relation
The tangent of 30º ise a known value
Solving for x, we have