Answer:
71°
Step-by-step explanation:
BDH is a triangle (as seen on figure)
<BDH + <DBH = <DHE ( Sum of two interior angles of a triangle is equal to the opposite exterior angle)
40° + 31° = X
X = 71°