Because the theorem is (a^2)+(b^2)=c^2, it is commutative and you can write it as (b^2)+(a^2)=c^2. So, just designate one side as 'a' and use the side you have ...
Intro to the Pythagorean theorem (video) - Khan Academy
This summary was compiled by our editorial team from publicly available information for quick reading. For full details, refer to original reporting where available.