The legs of an isosceles right triangle are congruent and measure 45 deg. The right angle measures 90 deg. The ratio of the lengths of the sides of a 45-45-90 deg triangle is 1 : 1 : sqrt(2).
Since the hypotenuse measures 8, then the legs measure 8/sqrt(2)