The diagram representing the trapezoid is shown in the attached photo. The median EF is a line segment that is half way between the 2 bases. The length of the median is the average of the two bases. Therefore,
EF = (12 + 18)/2 = 15
Two similar trapezoids are formed. They are ABFE and EFCD