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