Answer: x=5.9
Explanation:
Use SOH CAH TOA to find full length then subtract to find x
full angle is 27+8=35
they gave adjacent and opposite to the angle so use TOA
tan 35 =

y=31 tan 35
y=21.71 this is the full length
now we do same for the shorter part lets call z
tan 27 =

z= 31 tan 27
z= 15.80 this is th bottom part of line
subtract to find x
x = y - z
x = 21.71 - 15.80
x=5.9