The angles of the triangle are given as to have measures of 45°-45°-90°. This entails that the triangle is an isosceles triangle where the 2 legs of the triangle are of equal length. We calculate as follows:
c² = a² + b²
c² = 2a²
4² = 2a²
a = 2√2
Hope this answers the question. Have a nice day.