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