Answer : Length of the ramp, AC = 22.8 ft.
Explanation :
From the attached figure,
Height of building, AB = 6 ft
Distance from the building to the end of the ramp, BC = 22 ft
Using Pythagoras theorem :




The length of the ramp is 22.8 ft
Hence, this is the required solution.