The lengths of the three sides of a triangle are x, x+3, and 2x−1. If the perimeter of the triangle is 34, what is the length of the longest side?
8
11
15
17