A triangle and a trapezoid are equal in area. They also have the same altitude. If the base of the triangle is 18 cm, the median of the trapezoid is