The measure of the perimeter of a triangle is 37s+ 42. It is known that two of the sides of the triangle hare measures of 14s+ 16 and 10s + 20. Find the length of the third side.​