If you draw the picture, you will be able to draw a right triangle from the top of the shorter building straight across to the taller building (47 feet), up to the top of the taller building (20 feet) and slanting down (the zip line) back to the top of the shorter building.
Using the Pythagorean Theorem: 472 + 202 = c2
If you finish this, the value of c will be an approximation for the length of the zip line.
(Actually, because of gravity, it will have to be a little longer.)