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