In a pair of similar triangles, the lengths of the corresponding sides of the first triangle are 6 cm, 8 cm, and 10 cm. If the shortest side of the second triangle is 9 cm, what are the lengths of the other two sides of the second triangle? Let's think step by step and output the final answer within \boxed{}.
user