When you see a right triangle and need to solve for one side, use the Pythagorean Theorem. This states that the square of the hypotenuse is equal to the sum of the squares of the adjacent sides. In algebraic terms:
In triangle 1, we are given c and b, we need to find a.
In triangle 2, we have a and c, we need to find b.