The three sides of a triangle are x+1, 2x-1 and 3x+1 respectively and the perimeter is 25 cm. The length of the smallest side is-