If a ladder 8 feet long is placed so that it just reaches a window 6 feet from the ground, how far from the building is the foot of the ladder?