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