To solve the problem shown above you must apply the proccedure shown below:
1. The first thing you must do is to calculate the height of the triangles, as below:
Tanα=opposite/adjacent
Tan(30)=y/5
y=2.88 cm
2. Now, you can calculate "x" by applying the Pythagorean Theorem:
a²=b+x²
x=√(a²-b)
x=√(12 cm)²-(2.88 cm)²
x=11.6 cm