The length of the first side of a triangle is 3 more than twice the second side, and three half of the third side. Find the lengths of the sides if the perimeter of the triangle is 31.