First, let's calculate the length of the hypotenuse, using the Pythagorean theorem.
This theorem states that the hypotenuse squared is equal to the sum of each leg squared.
So we have:

Now, calculating the perimeter, we have:

Let's convert the perimeter to inches:

Calculating the number of fences, we have:

Therefore 72 fence posts will be needed.