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