The slope is defined as rise/run - in other words, for every step you take horizontally, how many steps you should take vertically to get to a point on the same line.
In our case, the ladder rises 20 feet for every horizontal change of 4 feet; therefore, the slope is
dividing 30 ft by 4 ft gives 5; therefore,
Hence, the correct answer to choose is A. 5.