Liza put some books on a shelf. The list below shows the mass of each book in ounces.

5, 5, 9, 5, 8, 8, 9

What is the median of the mass of the books she put on the shelf?