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