Tom wants to fence in his yard to keep his dog from running out into the street. He knows how many square feet his yard is, but he needs to know the perimeter. The area of Tom’s back yard is 400 feet squared. Tom’s yard is in the shape of a square. How many feet of fencing does Tom need to buy?