The Hypotenuse-Leg Theorem states that two right triangles are congruent if and only if the hypotenuse and a leg of one right triangle are congruent to the hypotenuse and a leg of the other right triangle.
From this theorem, we know that corresponding sides must be equal for those triangles to be congruent. Then, we get two equations

Let's start solving the equation for b.

We can start by subtracting 18 from both sides of the equation

Now, we can subtract b from both sides.

And finally, dividing both sides by 3 we have

Now we have our b value. b = 10. Now, let's calculate the value for c.

We can start by adding 22 to both sides of the equation

Now, we can just subtract c from both sides to get our value

Then, we have our c value, c = 20.