The perimeter of a square is equal to the perimeter of an equilateral triangle. The length of a side of the square is given by x, and the length of a side of the equilateral triangle is given by x + 1. Which equation can be used to find the value of x?