B. 10 centimeters
Explanation:
Perimeter of rectangle = 2(length + width)
Perimeter of square = 4(side)
Given that the perimeter of the rectangle is equal to the perimeter of the square:
2(13 + 7) = 4(side)
2(20) = 4(side)
40 = 4(side)
10 = side
Therefore, the length of a side of the square is 10 centimeters.