The perimeters of two similar triangles ABC and PQR are respectively 36 cm and 24 cm. If PQ = 10 cm, then find AB.