A garden has four sides that are all the same length. Each side measures x + 5 units. The garden’s perimeter is 144 units. What is the value of x?