The lengths of the sides of a triangle are in the extended ratio 7 ​: 8 ​:9 . The perimeter of the triangle is 96 cm. What are the lengths of the​ sides?