The first side of a triangle is 3 cm shorter than the second side. The 3rd side is 5cm longer than the second side. The perimeter is 38 cm. Find the length of the 3rd side.