The formula for Pythagorean theorem is a squared plus b squared equals c squared. 24 is the a measure and 45 is the b measure so 24 squared plus 45 squared equals c squared. 24 squared is 576 and 45 squared is 2025 and so you add those together and you get 2061. Then you find the square root of that to give you c. Then you add all the sides together to get how much fencing needed