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