There are 6 baskets on the table. Each basket has 9, 2, 4, 8, 0 and 7 apples. Matt chose fourth, Olivia chose second, Emma chose third, Liam chose sixth, John chose first, and Sean chose fifth. How many apples did Olivia and Matt choose in total?