Please explain how to solve 17 and 18

Answer:
17. h = l − l cos θ
18. 1.40 m
Explanation:
Let's call d the height of the triangle. We can then say:
h = l − d
Using trig, we can write d in terms of l and θ:
d = l cos θ
h = l − l cos θ
If l = 6 m and l cos θ = 40°:
h = 6 − 6 cos 40
h ≈ 1.40