Draw it. It's a right triangle, with a base of 6 feet and a height of 4 feet. Now all you need is Pythagoras' theorem, a^2 + b^2 = c^2.
The height can be a, the base can be b, so all you need is to solve for c, which is the rope.
The rest is left as an exercise to the reader