If the wire was bent into a rectangle with dimensions 5 and 7, the perimeter of this rectangle corresponds to the length of the wire:
So if we use the same wire to make a square with side equal x, the perimeter of this square is 4x, so:
So the side of the square is 6 units, therefore the correct option is B.