A building is 20 feet tall. James is standing near the building, looking directly at the roof of the building at a 30 degree angle. If James wanted to throw a rope from himself to the roof, how long would the rope have to be?

draw a diagram and review the basic trig functions.

You can see that the rope length r can be found using
20/r = sin30°
so now it's easy to find r.