Find a missing leg
When c and one leg are known, subtract that leg square from c², then take the positive square root. This undoes one term in a²+b²=c². The hypotenuse must exceed either leg; inconsistent givens do not create negative lengths.
a²=5²−4²=25−16=9. Take positive root: 3 cm. Substitution checks 9+16=25.