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