A triangle has side lengths of 2x+1, 3x−2, and z. If the perimeter of the triangle is 7x+5, which of the following expressions represents the length of side z?
2x+4
2x+6
2x+8
12x+4