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 ...