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