Paula leaned a 10-foot ladder against a building as shown below.


If Paula wants the top of the ladder to reach exactly 8 feet (ft) up the building, what is x, the distance between the building and the base of the ladder, in feet?
A 2
B 4
C 6
D 9