the first side of a triangle is 3cm longer than the second side. The third side is 4cm shorter than twice the second side. The perimeter is 31cm. How long is the first side?