The trapezoid in Exam Figure 6 has equal nonparallel sides. The upper base is 6, the lower base is 16, and the diagonal is 12. What is the altitude of the trapezoid? Round your answer to one decimal place.