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