Suppose abc is similar to a triangle whose sides have lengths 3, 7, and 8. If AB=6 is the shortest side in abc what is the perimeter of abc?