In a triangle, the middle length side is 3 more than the shortest side, and the longest side is double the middle length side. The perimeter of the triangle is 45 cm.