Concept:
This is a right-angled triangle problem formed by a ladder leaning against a wall. The ladder acts as the hypotenuse, the wall height is one perpendicular side, and the ground distance is the base.
We use the Pythagorean theorem:
\[
a^2 + b^2 = c^2
\]
where:
• \(c\) = ladder length (hypotenuse)
• \(a\) = height of wall
• \(b\) = distance from wall
Step 1: Identify given values.
\[
c = 15 \text{ m}, \quad a = 12 \text{ m}, \quad b = ?
\]
Step 2: Apply Pythagorean theorem.
\[
12^2 + b^2 = 15^2
\]
Step 3: Compute squares carefully.
\[
144 + b^2 = 225
\]
Step 4: Isolate \(b^2\).
\[
b^2 = 225 - 144
\]
\[
b^2 = 81
\]
Step 5: Take square root.
\[
b = \sqrt{81} = 9
\]
Step 6: Final interpretation.
The distance from the foot of the ladder to the building is:
\[
9 \text{ m}
\]
Final Answer:
\[
\boxed{9 \text{ m}}
\]