The lengths of the sides of a triangle are in the ratio 5 : 6 : 7. What is the length of the longest side if the perimeter is less than 54 cm?