A tour bus is traveling along a triangular path. The three straight lines form a right triangle. One leg of the triangle represents a distance of 8 miles. The other leg of the triangle is 4 miles shorter than the hypotenuse. What is the length of the hypotenuse of this​ triangle? Of the other​ leg?