Answer:
The correct option is B.
Explanation:
It is given that top of the ramp is 4 feet above the ground and the bottom of the ramp is 18 feet from the building.
Draw a figure by using the given information.
From the figure it is clear than it is a right angled triangle with base 18 feet and height 4 feet.
According to the Pythagoras theorem,

Using the Pythagoras theorem, the length of ramp is




Taking square root both the sides.



The length of the ramp is 18.4 ft. Therefore the correct option is B.