Your side length is 32, using the Pythagorean theorem. We are given hypotenuse and length a. Now we are finding b, to do this substitute your known value 40^2 is 1600-24^2=1024. Now we have b^2=1024 square root both sides. Square root of 1024 is 32. Therefore b is 32. Hope this helps