0-foot ladder is leaning against a wall. The base of the ladder is 2 feet from the base of the building. How far up the building does the ladder fall

assuming you meant a 10-ft ladder, then the height is

√(10^2-2^2) = √96

If not 10, then fix it and use the same formula.