The ratio of the lengths of the sides of △ABC is 3:4:6. The perimeter of the triangle whose vertices are the midpoints of the sides of △ABC is 13 cm. Find the lengths of the sides of △ABC.