Given that the distance to be reached is 8 feet above ground and she she placed a ladder so that it reached the bottom of the window, the base of the ladder was 6 feet from the house, the length of the ladder considered with the other lengths forms a right angled triangle.
The length of the ladder represents the hypotenuse side hence using pythagoras theorem