two straight poles length 80m, 50 m vertically with a distance 40m. a rope is connected their tops. find the length of the rope?

the difference in height is 30.

So, draw a diagram. The rope is the hypotenuse of a 30-40-50 right triangle.