The Pythagoras' theorem would be applied for each triangle.
The theorem states as follows;
[tex]\begin{gathered} c^2=a^2+b^2 \\ \text{Where c is the hypotenuse (longest side)} \\ a\text{ and b are the other two sides} \end{gathered}[/tex]
For triangle 1, the equation is
[tex]\begin{gathered} 15^2+20^2=c^2 \\ 225+400=c^2 \\ c=\sqrt[]{225+400} \\ c=\sqrt[]{625} \\ c=25 \end{gathered}[/tex]
For triangle 2, the equation is
[tex]\begin{gathered} 5^2+b^2=13^2 \\ 25+b^2=169 \\ b^2=169-25 \\ b^2=144 \\ b=\sqrt[]{144} \\ b=12 \end{gathered}[/tex]
For triangle 3, the equation is
[tex]\begin{gathered} 28^2+b^2=35^2 \\ 784+b^2=1225 \\ b^2=1225-784 \\ b^2=441 \\ b=\sqrt[]{441} \\ b=21 \end{gathered}[/tex]