The perimeter of one square is given as 4x. Its perimeter is equal to the perimeter of a rectangle given as 2.5x + 3.75. What is the perimeter of each figure?