Type 1
this is a right triangle, the we can apply pythagoras
where a and b are sides and h the hypotenuse on this case L(leash)
replacing
simplify
now solve for L
The leash is 8.6ft
Type 2
we have a right triangle too
on this case the missing number is a side, not hypotenuse
remember pythagoras
and replace for this case
simplify
and solve for x
then le length of the side x is 4.44ft