The area of a trapezoid is 48 square centimeters. The height is 6 centimeters and one base 3 times the length of the other base. What are the lengths of the bases?