If the hypotenuse of a 45°-45°-90° triangle is 13, what is the length of one of the legs?