I don't really know how to explain my work so I will post a picture of my work. I basically made a right triangle with the length of the string being the hypotenuse and solved for x. I then added 3 to x since he is holding the string 3 feet off of the ground.
I hope this helps. Let me know in the comments if anything is unclear.