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