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