The perimeter of a regular 5-sided figure is 25 units, and the length of each side is x + 2 units. What is the value of x?