From the picture you can see that presented triangle is right. The right angle is at point A. That means that we can use pythagorean theorem to find lenght of unknown side of triangle if we know lenghts of 2 others.
For this scenario we have lenghts of 2 legs (shorter sides of triangle) and we need to find hypothenuse.