how do i do this could you show step by step please?

Answer:
x = 2
Step-by-step explanation:
This is a 45-45-90 special right triangle. The legs in this triangle are equal and the hypotenuse is leg multiplied with √2. Refer to the picture at the bottom.
One leg is x, the second leg is x and hypotenuse x√2.
[tex]x \sqrt{2} = 2 \sqrt{2} \\\\\text{Divide both sides with } \sqrt{2} \text{ to isolate } x.\\\frac{x \sqrt{2}}{\sqrt{2}} = \frac{2 \sqrt{2}}{\sqrt{2}}\\\\x = 2[/tex]