A fireman's ladder can reach 40 ft up the side of a building when the foot of the ladder is placed 9 ft from the base of the building. How long is the ladder?
a) 41 ft
b) 45 ft
c) 47 ft
d) 49 ft