The second side of a triangle is 3 more than the first side. the third side is 10 less than 3 times the first side. if the perimeter is 23 cm, find the length of the shortest side.