A square is equal on all 4 sides and in this problem all sides are equal to 6. Therefore you have an isosceles right triangle with two sides of six making the Hypotenuse 6*the square root of two.
( the rule for an isosceles right triangle is the two legs are equal to X and the Hypotenuse is equal to X* the square root of 2