A 15 m long ladder reached a window 12 m high from the ground on placing

A 15 m long ladder reached a window 12 m high from the ground on placing it against a wall at a distance a. Find the distance of the foot of the ladder from the wall.
image

image