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