A gift box is designed with a square base. The height of the box is inches. The manufacturer specifies that the sum of the perimeter of the base and the height of the box must not exceed inches. What is the greatest possible side length, in inches, of the square base?