A supporting wire is attached to a tree at a height of 45 feet from the ground. If the length of the wire is 51 feet, what is the distance between the base of the tree and the foot of the wire?