In a 45-45-90 triangle the hypotenuse is 7, what are the lengths of the other legs?