the length of the sides of a triangle are 2x+5,x-3 and 3x+1 the perimeter of the triangle is 39 in. what are the lengths of the sides