In the figure not drawn to scale, JKLM is a rectangle and JNM is a right-angled triangle with sides measuring 60 cm, 80 cm and 100 cm. The perimeter of the shaded part is 344 cm. What is the ratio of the area of the triangle to the area of the shaded part? Give your answer in the simplest form.