One side of a triangle is 3 times longer than the shortest side and the third side is 4 centimeters longer than the shortest side. The perimeter of the triangle is 39.How long is the shortest side of the triangle?