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