Write down the union, $A \cup B$, of the following two sets:
$$A = \{9, 2, 6, 7\}, \qquad B= \{1, 2, 4, 5, 8\}.$$